import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * > **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 `gcp.pubsub.Topic` instead. * * A named resource to which messages are sent by publishers. * * To get more information about Topic, see: * * * [API documentation](https://cloud.google.com/pubsub/lite/docs/reference/rest/v1/admin.projects.locations.topics) * * How-to Guides * * [Managing Topics](https://cloud.google.com/pubsub/lite/docs/topics) * * ## Example Usage * * ### Pubsub Lite Topic 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, * }); * const exampleLiteTopic = new gcp.pubsub.LiteTopic("example", { * name: "example-topic", * project: project.then(project => project.number), * partitionConfig: { * count: 1, * capacity: { * publishMibPerSec: 4, * subscribeMibPerSec: 8, * }, * }, * retentionConfig: { * perPartitionBytes: "32212254720", * }, * reservationConfig: { * throughputReservation: example.name, * }, * }); * ``` * * ## Import * * Topic can be imported using any of these accepted formats: * * * `projects/{{project}}/locations/{{zone}}/topics/{{name}}` * * `{{project}}/{{zone}}/{{name}}` * * `{{zone}}/{{name}}` * * `{{name}}` * * When using the `pulumi import` command, Topic can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:pubsub/liteTopic:LiteTopic default projects/{{project}}/locations/{{zone}}/topics/{{name}} * $ pulumi import gcp:pubsub/liteTopic:LiteTopic default {{project}}/{{zone}}/{{name}} * $ pulumi import gcp:pubsub/liteTopic:LiteTopic default {{zone}}/{{name}} * $ pulumi import gcp:pubsub/liteTopic:LiteTopic default {{name}} * ``` */ export declare class LiteTopic extends pulumi.CustomResource { /** * Get an existing LiteTopic 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?: LiteTopicState, opts?: pulumi.CustomResourceOptions): LiteTopic; /** * Returns true if the given object is an instance of LiteTopic. 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 LiteTopic; /** * Name of the topic. */ readonly name: pulumi.Output; /** * The settings for this topic's partitions. * Structure is documented below. */ readonly partitionConfig: 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 topic. */ readonly region: pulumi.Output; /** * The settings for this topic's Reservation usage. * Structure is documented below. */ readonly reservationConfig: pulumi.Output; /** * The settings for a topic's message retention. * Structure is documented below. */ readonly retentionConfig: pulumi.Output; /** * The zone of the pubsub lite topic. */ readonly zone: pulumi.Output; /** * Create a LiteTopic 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?: LiteTopicArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering LiteTopic resources. */ export interface LiteTopicState { /** * Name of the topic. */ name?: pulumi.Input; /** * The settings for this topic's partitions. * Structure is documented below. */ partitionConfig?: 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 topic. */ region?: pulumi.Input; /** * The settings for this topic's Reservation usage. * Structure is documented below. */ reservationConfig?: pulumi.Input; /** * The settings for a topic's message retention. * Structure is documented below. */ retentionConfig?: pulumi.Input; /** * The zone of the pubsub lite topic. */ zone?: pulumi.Input; } /** * The set of arguments for constructing a LiteTopic resource. */ export interface LiteTopicArgs { /** * Name of the topic. */ name?: pulumi.Input; /** * The settings for this topic's partitions. * Structure is documented below. */ partitionConfig?: 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 topic. */ region?: pulumi.Input; /** * The settings for this topic's Reservation usage. * Structure is documented below. */ reservationConfig?: pulumi.Input; /** * The settings for a topic's message retention. * Structure is documented below. */ retentionConfig?: pulumi.Input; /** * The zone of the pubsub lite topic. */ zone?: pulumi.Input; }