import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../../types"; /** * Creates a new Secret containing no SecretVersions. */ export declare class Secret extends pulumi.CustomResource { /** * Get an existing Secret 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): Secret; /** * Returns true if the given object is an instance of Secret. 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 Secret; /** * The time at which the Secret was created. */ readonly createTime: pulumi.Output; /** * Optional. Timestamp in UTC when the Secret is scheduled to expire. This is always provided on output, regardless of what was sent on input. */ readonly expireTime: pulumi.Output; /** * The labels assigned to this Secret. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: `\p{Ll}\p{Lo}{0,62}` Label values must be between 0 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}` No more than 64 labels can be assigned to a given resource. */ readonly labels: pulumi.Output<{ [key: string]: string; }>; /** * The resource name of the Secret in the format `projects/*/secrets/*`. */ readonly name: pulumi.Output; /** * Required. Immutable. The replication policy of the secret data attached to the Secret. The replication policy cannot be changed after the Secret has been created. */ readonly replication: pulumi.Output; /** * Optional. Rotation policy attached to the Secret. May be excluded if there is no rotation policy. */ readonly rotation: pulumi.Output; /** * Optional. A list of up to 10 Pub/Sub topics to which messages are published when control plane operations are called on the secret or its versions. */ readonly topics: pulumi.Output; /** * Input only. The TTL for the Secret. */ readonly ttl: pulumi.Output; /** * Create a Secret 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: SecretArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a Secret resource. */ export interface SecretArgs { /** * Optional. Timestamp in UTC when the Secret is scheduled to expire. This is always provided on output, regardless of what was sent on input. */ readonly expireTime?: pulumi.Input; /** * The labels assigned to this Secret. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: `\p{Ll}\p{Lo}{0,62}` Label values must be between 0 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}` No more than 64 labels can be assigned to a given resource. */ readonly labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; readonly projectsId: pulumi.Input; /** * Required. Immutable. The replication policy of the secret data attached to the Secret. The replication policy cannot be changed after the Secret has been created. */ readonly replication?: pulumi.Input; /** * Optional. Rotation policy attached to the Secret. May be excluded if there is no rotation policy. */ readonly rotation?: pulumi.Input; readonly secretsId: pulumi.Input; /** * Optional. A list of up to 10 Pub/Sub topics to which messages are published when control plane operations are called on the secret or its versions. */ readonly topics?: pulumi.Input[]>; /** * Input only. The TTL for the Secret. */ readonly ttl?: pulumi.Input; }