import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * ## Example Usage * * ### Regional Secret Version Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const secret_basic = new gcp.secretmanager.RegionalSecret("secret-basic", { * secretId: "secret-version", * location: "us-central1", * }); * const regionalSecretVersionBasic = new gcp.secretmanager.RegionalSecretVersion("regional_secret_version_basic", { * secret: secret_basic.id, * secretData: "secret-data", * }); * ``` * ### Regional Secret Version With Base64 Data * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * import * as std from "@pulumi/std"; * * const secret_basic = new gcp.secretmanager.RegionalSecret("secret-basic", { * secretId: "secret-version", * location: "us-central1", * }); * const regionalSecretVersionBase64 = new gcp.secretmanager.RegionalSecretVersion("regional_secret_version_base64", { * secret: secret_basic.id, * secretData: std.filebase64({ * input: "secret-data.pfx", * }).then(invoke => invoke.result), * isSecretDataBase64: true, * }); * ``` * ### Regional Secret Version Disabled * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const secret_basic = new gcp.secretmanager.RegionalSecret("secret-basic", { * secretId: "secret-version", * location: "us-central1", * }); * const regionalSecretVersionDisabled = new gcp.secretmanager.RegionalSecretVersion("regional_secret_version_disabled", { * secret: secret_basic.id, * secretData: "secret-data", * enabled: false, * }); * ``` * ### Regional Secret Version Deletion Policy Abandon * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const secret_basic = new gcp.secretmanager.RegionalSecret("secret-basic", { * secretId: "secret-version", * location: "us-central1", * }); * const regionalSecretVersionDeletionPolicy = new gcp.secretmanager.RegionalSecretVersion("regional_secret_version_deletion_policy", { * secret: secret_basic.id, * secretData: "secret-data", * deletionPolicy: "ABANDON", * }); * ``` * ### Regional Secret Version Deletion Policy Disable * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const secret_basic = new gcp.secretmanager.RegionalSecret("secret-basic", { * secretId: "secret-version", * location: "us-central1", * }); * const regionalSecretVersionDeletionPolicy = new gcp.secretmanager.RegionalSecretVersion("regional_secret_version_deletion_policy", { * secret: secret_basic.id, * secretData: "secret-data", * deletionPolicy: "DISABLE", * }); * ``` * * ## Import * * RegionalSecretVersion can be imported using any of these accepted formats: * * * `projects/{{project}}/locations/{{location}}/secrets/{{secret_id}}/versions/{{version}}` * * When using the `pulumi import` command, RegionalSecretVersion can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:secretmanager/regionalSecretVersion:RegionalSecretVersion default projects/{{project}}/locations/{{location}}/secrets/{{secret_id}}/versions/{{version}} * ``` */ export declare class RegionalSecretVersion extends pulumi.CustomResource { /** * Get an existing RegionalSecretVersion 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?: RegionalSecretVersionState, opts?: pulumi.CustomResourceOptions): RegionalSecretVersion; /** * Returns true if the given object is an instance of RegionalSecretVersion. 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 RegionalSecretVersion; /** * The time at which the regional secret version was created. */ readonly createTime: pulumi.Output; /** * The customer-managed encryption configuration of the regional secret. * Structure is documented below. */ readonly customerManagedEncryptions: pulumi.Output; /** * The deletion policy for the regional secret version. Setting `ABANDON` allows the resource * to be abandoned rather than deleted. Setting `DISABLE` allows the resource to be * disabled rather than deleted. Default is `DELETE`. Possible values are: * * DELETE * * DISABLE * * ABANDON */ readonly deletionPolicy: pulumi.Output; /** * The time at which the regional secret version was destroyed. Only present if state is DESTROYED. */ readonly destroyTime: pulumi.Output; /** * The current state of the regional secret version. */ readonly enabled: pulumi.Output; /** * If set to 'true', the secret data is expected to be base64-encoded string and would be sent as is. */ readonly isSecretDataBase64: pulumi.Output; /** * Location of Secret Manager regional secret resource. */ readonly location: pulumi.Output; /** * The resource name of the regional secret version. Format: * `projects/{{project}}/locations/{{location}}/secrets/{{secret_id}}/versions/{{version}}` */ readonly name: pulumi.Output; /** * Secret Manager regional secret resource. */ readonly secret: pulumi.Output; /** * The secret data. Must be no larger than 64KiB. * **Note**: This property is sensitive and will not be displayed in the plan. */ readonly secretData: pulumi.Output; /** * The version of the Regional Secret. */ readonly version: pulumi.Output; /** * Create a RegionalSecretVersion 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: RegionalSecretVersionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering RegionalSecretVersion resources. */ export interface RegionalSecretVersionState { /** * The time at which the regional secret version was created. */ createTime?: pulumi.Input; /** * The customer-managed encryption configuration of the regional secret. * Structure is documented below. */ customerManagedEncryptions?: pulumi.Input[]>; /** * The deletion policy for the regional secret version. Setting `ABANDON` allows the resource * to be abandoned rather than deleted. Setting `DISABLE` allows the resource to be * disabled rather than deleted. Default is `DELETE`. Possible values are: * * DELETE * * DISABLE * * ABANDON */ deletionPolicy?: pulumi.Input; /** * The time at which the regional secret version was destroyed. Only present if state is DESTROYED. */ destroyTime?: pulumi.Input; /** * The current state of the regional secret version. */ enabled?: pulumi.Input; /** * If set to 'true', the secret data is expected to be base64-encoded string and would be sent as is. */ isSecretDataBase64?: pulumi.Input; /** * Location of Secret Manager regional secret resource. */ location?: pulumi.Input; /** * The resource name of the regional secret version. Format: * `projects/{{project}}/locations/{{location}}/secrets/{{secret_id}}/versions/{{version}}` */ name?: pulumi.Input; /** * Secret Manager regional secret resource. */ secret?: pulumi.Input; /** * The secret data. Must be no larger than 64KiB. * **Note**: This property is sensitive and will not be displayed in the plan. */ secretData?: pulumi.Input; /** * The version of the Regional Secret. */ version?: pulumi.Input; } /** * The set of arguments for constructing a RegionalSecretVersion resource. */ export interface RegionalSecretVersionArgs { /** * The deletion policy for the regional secret version. Setting `ABANDON` allows the resource * to be abandoned rather than deleted. Setting `DISABLE` allows the resource to be * disabled rather than deleted. Default is `DELETE`. Possible values are: * * DELETE * * DISABLE * * ABANDON */ deletionPolicy?: pulumi.Input; /** * The current state of the regional secret version. */ enabled?: pulumi.Input; /** * If set to 'true', the secret data is expected to be base64-encoded string and would be sent as is. */ isSecretDataBase64?: pulumi.Input; /** * Secret Manager regional secret resource. */ secret: pulumi.Input; /** * The secret data. Must be no larger than 64KiB. * **Note**: This property is sensitive and will not be displayed in the plan. */ secretData: pulumi.Input; }