import * as pulumi from "@pulumi/pulumi"; /** * Configures KV-V2 backend level settings that are applied to * every key in the key-value store. * * For more information on Vault's KV-V2 secret backend * [see here](https://www.vaultproject.io/docs/secrets/kv/kv-v2). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vault from "@pulumi/vault"; * * const kvv2 = new vault.Mount("kvv2", { * path: "kvv2", * type: "kv", * options: { * version: "2", * }, * description: "KV Version 2 secret engine mount", * }); * const example = new vault.kv.SecretBackendV2("example", { * mount: kvv2.path, * maxVersions: 5, * deleteVersionAfter: 12600, * casRequired: true, * }); * ``` * * ## Required Vault Capabilities * * Use of this resource requires the `create` or `update` capability * (depending on whether the resource already exists) on the given path, * the `delete` capability if the resource is removed from configuration, * and the `read` capability for drift detection (by default). * * ## Import * * The KV-V2 secret backend can be imported using its unique ID, * the `${mount}/config`, e.g. * * ```sh * $ pulumi import vault:kv/secretBackendV2:SecretBackendV2 example kvv2/config * ``` */ export declare class SecretBackendV2 extends pulumi.CustomResource { /** * Get an existing SecretBackendV2 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?: SecretBackendV2State, opts?: pulumi.CustomResourceOptions): SecretBackendV2; /** * Returns true if the given object is an instance of SecretBackendV2. 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 SecretBackendV2; /** * If true, all keys will require the cas * parameter to be set on all write requests. */ readonly casRequired: pulumi.Output; /** * If set, specifies the length of time before * a version is deleted. Accepts duration in integer seconds. */ readonly deleteVersionAfter: pulumi.Output; /** * The number of versions to keep per key. */ readonly maxVersions: pulumi.Output; /** * Path where KV-V2 engine is mounted. */ readonly mount: pulumi.Output; /** * The namespace to provision the resource in. * The value should not contain leading or trailing forward slashes. * The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace). * *Available only for Vault Enterprise*. */ readonly namespace: pulumi.Output; /** * Create a SecretBackendV2 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: SecretBackendV2Args, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SecretBackendV2 resources. */ export interface SecretBackendV2State { /** * If true, all keys will require the cas * parameter to be set on all write requests. */ casRequired?: pulumi.Input; /** * If set, specifies the length of time before * a version is deleted. Accepts duration in integer seconds. */ deleteVersionAfter?: pulumi.Input; /** * The number of versions to keep per key. */ maxVersions?: pulumi.Input; /** * Path where KV-V2 engine is mounted. */ mount?: pulumi.Input; /** * The namespace to provision the resource in. * The value should not contain leading or trailing forward slashes. * The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace). * *Available only for Vault Enterprise*. */ namespace?: pulumi.Input; } /** * The set of arguments for constructing a SecretBackendV2 resource. */ export interface SecretBackendV2Args { /** * If true, all keys will require the cas * parameter to be set on all write requests. */ casRequired?: pulumi.Input; /** * If set, specifies the length of time before * a version is deleted. Accepts duration in integer seconds. */ deleteVersionAfter?: pulumi.Input; /** * The number of versions to keep per key. */ maxVersions?: pulumi.Input; /** * Path where KV-V2 engine is mounted. */ mount: pulumi.Input; /** * The namespace to provision the resource in. * The value should not contain leading or trailing forward slashes. * The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace). * *Available only for Vault Enterprise*. */ namespace?: pulumi.Input; }