import * as pulumi from "@pulumi/pulumi"; /** * The `scaleway.SecretVersion` resource allows you to create and manage secret versions in Scaleway Secret Manager. * * Refer to the Secret Manager [product documentation](https://www.scaleway.com/en/docs/identity-and-access-management/secret-manager/) and [API documentation](https://www.scaleway.com/en/developers/api/secret-manager/) for more information. * * ## Example Usage * * ### Create a secret and a version * * The following commands allow you to: * * - create a secret named `foo` * - create a version of this secret containing the `myNewSecret` data * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@ediri/scaleway"; * * const main = new scaleway.Secret("main", { * description: "barr", * tags: [ * "foo", * "terraform", * ], * }); * const v1 = new scaleway.SecretVersion("v1", { * description: "version1", * secretId: main.id, * data: "my_new_secret", * }); * ``` * * ## Import * * This section explains how to import a secret version using the `{region}/{id}/{revision}` format. * * ~> **Important:** Keep in mind that if you import with the `latest` revision, you will overwrite the previous version you might have been using. * * bash * * ```sh * $ pulumi import scaleway:index/secretVersion:SecretVersion main fr-par/11111111-1111-1111-1111-111111111111/2 * ``` */ export declare class SecretVersion extends pulumi.CustomResource { /** * Get an existing SecretVersion 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?: SecretVersionState, opts?: pulumi.CustomResourceOptions): SecretVersion; /** * Returns true if the given object is an instance of SecretVersion. 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 SecretVersion; /** * The date and time of the secret version's creation (in RFC 3339 format). */ readonly createdAt: pulumi.Output; /** * The data payload of the secret version. Must not exceed 64KiB in size (e.g. `my-secret-version-payload`). Find out more on the [data section](https://www.terraform.io/#data-information). */ readonly data: pulumi.Output; /** * Description of the secret version (e.g. `my-new-description`). */ readonly description: pulumi.Output; /** * ). The region where the resource exists. */ readonly region: pulumi.Output; /** * The revision number of the secret version. */ readonly revision: pulumi.Output; /** * The ID of the secret associated with the version. */ readonly secretId: pulumi.Output; /** * The status of the secret version. */ readonly status: pulumi.Output; /** * The date and time of the secret version's last update (in RFC 3339 format). */ readonly updatedAt: pulumi.Output; /** * Create a SecretVersion 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: SecretVersionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SecretVersion resources. */ export interface SecretVersionState { /** * The date and time of the secret version's creation (in RFC 3339 format). */ createdAt?: pulumi.Input; /** * The data payload of the secret version. Must not exceed 64KiB in size (e.g. `my-secret-version-payload`). Find out more on the [data section](https://www.terraform.io/#data-information). */ data?: pulumi.Input; /** * Description of the secret version (e.g. `my-new-description`). */ description?: pulumi.Input; /** * ). The region where the resource exists. */ region?: pulumi.Input; /** * The revision number of the secret version. */ revision?: pulumi.Input; /** * The ID of the secret associated with the version. */ secretId?: pulumi.Input; /** * The status of the secret version. */ status?: pulumi.Input; /** * The date and time of the secret version's last update (in RFC 3339 format). */ updatedAt?: pulumi.Input; } /** * The set of arguments for constructing a SecretVersion resource. */ export interface SecretVersionArgs { /** * The data payload of the secret version. Must not exceed 64KiB in size (e.g. `my-secret-version-payload`). Find out more on the [data section](https://www.terraform.io/#data-information). */ data: pulumi.Input; /** * Description of the secret version (e.g. `my-new-description`). */ description?: pulumi.Input; /** * ). The region where the resource exists. */ region?: pulumi.Input; /** * The ID of the secret associated with the version. */ secretId: pulumi.Input; }