import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource to manage [TOTP MFA](https://www.vaultproject.io/docs/enterprise/mfa/mfa-totp). * * **Note** this feature is available only with Vault Enterprise. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vault from "@pulumi/vault"; * * const myTotp = new vault.MfaTotp("my_totp", { * name: "my_totp", * issuer: "hashicorp", * period: 60, * algorithm: "SHA256", * digits: 8, * keySize: 20, * }); * ``` * * ## Import * * Mounts can be imported using the `path`, e.g. * * ```sh * $ pulumi import vault:index/mfaTotp:MfaTotp my_totp my_totp * ``` */ export declare class MfaTotp extends pulumi.CustomResource { /** * Get an existing MfaTotp 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?: MfaTotpState, opts?: pulumi.CustomResourceOptions): MfaTotp; /** * Returns true if the given object is an instance of MfaTotp. 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 MfaTotp; /** * `(string)` - Specifies the hashing algorithm used to generate the TOTP code. * Options include `SHA1`, `SHA256` and `SHA512` */ readonly algorithm: pulumi.Output; /** * `(int)` - The number of digits in the generated TOTP token. * This value can either be 6 or 8. */ readonly digits: pulumi.Output; /** * `(string: )` - The name of the key's issuing organization. */ readonly issuer: pulumi.Output; /** * `(int)` - Specifies the size in bytes of the generated key. */ readonly keySize: pulumi.Output; /** * `(string: )` – Name of the MFA method. */ readonly name: 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; /** * `(int)` - The length of time used to generate a counter for the TOTP token calculation. */ readonly period: pulumi.Output; /** * `(int)` - The pixel size of the generated square QR code. */ readonly qrSize: pulumi.Output; /** * `(int)` - The number of delay periods that are allowed when validating a TOTP token. * This value can either be 0 or 1. */ readonly skew: pulumi.Output; /** * Create a MfaTotp 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: MfaTotpArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering MfaTotp resources. */ export interface MfaTotpState { /** * `(string)` - Specifies the hashing algorithm used to generate the TOTP code. * Options include `SHA1`, `SHA256` and `SHA512` */ algorithm?: pulumi.Input; /** * `(int)` - The number of digits in the generated TOTP token. * This value can either be 6 or 8. */ digits?: pulumi.Input; /** * `(string: )` - The name of the key's issuing organization. */ issuer?: pulumi.Input; /** * `(int)` - Specifies the size in bytes of the generated key. */ keySize?: pulumi.Input; /** * `(string: )` – Name of the MFA method. */ name?: 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; /** * `(int)` - The length of time used to generate a counter for the TOTP token calculation. */ period?: pulumi.Input; /** * `(int)` - The pixel size of the generated square QR code. */ qrSize?: pulumi.Input; /** * `(int)` - The number of delay periods that are allowed when validating a TOTP token. * This value can either be 0 or 1. */ skew?: pulumi.Input; } /** * The set of arguments for constructing a MfaTotp resource. */ export interface MfaTotpArgs { /** * `(string)` - Specifies the hashing algorithm used to generate the TOTP code. * Options include `SHA1`, `SHA256` and `SHA512` */ algorithm?: pulumi.Input; /** * `(int)` - The number of digits in the generated TOTP token. * This value can either be 6 or 8. */ digits?: pulumi.Input; /** * `(string: )` - The name of the key's issuing organization. */ issuer: pulumi.Input; /** * `(int)` - Specifies the size in bytes of the generated key. */ keySize?: pulumi.Input; /** * `(string: )` – Name of the MFA method. */ name?: 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; /** * `(int)` - The length of time used to generate a counter for the TOTP token calculation. */ period?: pulumi.Input; /** * `(int)` - The pixel size of the generated square QR code. */ qrSize?: pulumi.Input; /** * `(int)` - The number of delay periods that are allowed when validating a TOTP token. * This value can either be 0 or 1. */ skew?: pulumi.Input; }