import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../../types"; /** * Creates the given topic with the given name. See the [resource name rules] (https://cloud.google.com/pubsub/docs/admin#resource_names). */ export declare class Topic extends pulumi.CustomResource { /** * Get an existing Topic 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 opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): Topic; /** * Returns true if the given object is an instance of Topic. 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 Topic; /** * The resource name of the Cloud KMS CryptoKey to be used to protect access to messages published on this topic. The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`. */ readonly kmsKeyName: pulumi.Output; /** * See [Creating and managing labels] (https://cloud.google.com/pubsub/docs/labels). */ readonly labels: pulumi.Output<{ [key: string]: string; }>; /** * Policy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored. If not present, then no constraints are in effect. */ readonly messageStoragePolicy: pulumi.Output; /** * Required. The name of the topic. It must have the format `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in length, and it must not start with `"goog"`. */ readonly name: pulumi.Output; /** * Reserved for future use. This field is set only in responses from the server; it is ignored if it is set in any requests. */ readonly satisfiesPzs: pulumi.Output; /** * Settings for validating messages published against a schema. */ readonly schemaSettings: pulumi.Output; /** * Create a Topic 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: TopicArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a Topic resource. */ export interface TopicArgs { /** * The resource name of the Cloud KMS CryptoKey to be used to protect access to messages published on this topic. The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`. */ readonly kmsKeyName?: pulumi.Input; /** * See [Creating and managing labels] (https://cloud.google.com/pubsub/docs/labels). */ readonly labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Policy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored. If not present, then no constraints are in effect. */ readonly messageStoragePolicy?: pulumi.Input; /** * Required. The name of the topic. It must have the format `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in length, and it must not start with `"goog"`. */ readonly name?: pulumi.Input; readonly projectsId: pulumi.Input; /** * Reserved for future use. This field is set only in responses from the server; it is ignored if it is set in any requests. */ readonly satisfiesPzs?: pulumi.Input; /** * Settings for validating messages published against a schema. */ readonly schemaSettings?: pulumi.Input; readonly topicsId: pulumi.Input; }