import * as pulumi from "@pulumi/pulumi"; /** * > **Warning:** [Pubsub Lite is deprecated and will be turned down effective March 18, 2026](https://cloud.google.com/pubsub/lite/docs/release-notes#June_17_2024). The resource will be removed in a future major release, please use `googlePubsubReservation` instead. * * A named resource representing a shared pool of capacity. * * To get more information about Reservation, see: * * * [API documentation](https://cloud.google.com/pubsub/lite/docs/reference/rest/v1/admin.projects.locations.reservations) * * How-to Guides * * [Managing Reservations](https://cloud.google.com/pubsub/lite/docs/reservations) * * ## Example Usage * * ### Pubsub Lite Reservation Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const project = gcp.organizations.getProject({}); * const example = new gcp.pubsub.LiteReservation("example", { * name: "example-reservation", * project: project.then(project => project.number), * throughputCapacity: 2, * }); * ``` * * ## Import * * Reservation can be imported using any of these accepted formats: * * * `projects/{{project}}/locations/{{region}}/reservations/{{name}}` * * `{{project}}/{{region}}/{{name}}` * * `{{region}}/{{name}}` * * `{{name}}` * * When using the `pulumi import` command, Reservation can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:pubsub/liteReservation:LiteReservation default projects/{{project}}/locations/{{region}}/reservations/{{name}} * $ pulumi import gcp:pubsub/liteReservation:LiteReservation default {{project}}/{{region}}/{{name}} * $ pulumi import gcp:pubsub/liteReservation:LiteReservation default {{region}}/{{name}} * $ pulumi import gcp:pubsub/liteReservation:LiteReservation default {{name}} * ``` */ export declare class LiteReservation extends pulumi.CustomResource { /** * Get an existing LiteReservation resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: LiteReservationState, opts?: pulumi.CustomResourceOptions): LiteReservation; /** * Returns true if the given object is an instance of LiteReservation. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is LiteReservation; /** * Name of the reservation. */ readonly name: pulumi.Output; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ readonly project: pulumi.Output; /** * The region of the pubsub lite reservation. */ readonly region: pulumi.Output; /** * The reserved throughput capacity. Every unit of throughput capacity is * equivalent to 1 MiB/s of published messages or 2 MiB/s of subscribed * messages. */ readonly throughputCapacity: pulumi.Output; /** * Create a LiteReservation resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: LiteReservationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering LiteReservation resources. */ export interface LiteReservationState { /** * Name of the reservation. */ name?: pulumi.Input; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input; /** * The region of the pubsub lite reservation. */ region?: pulumi.Input; /** * The reserved throughput capacity. Every unit of throughput capacity is * equivalent to 1 MiB/s of published messages or 2 MiB/s of subscribed * messages. */ throughputCapacity?: pulumi.Input; } /** * The set of arguments for constructing a LiteReservation resource. */ export interface LiteReservationArgs { /** * Name of the reservation. */ name?: pulumi.Input; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input; /** * The region of the pubsub lite reservation. */ region?: pulumi.Input; /** * The reserved throughput capacity. Every unit of throughput capacity is * equivalent to 1 MiB/s of published messages or 2 MiB/s of subscribed * messages. */ throughputCapacity: pulumi.Input; }