@pulumi/vault
Version:
A Pulumi package for creating and managing HashiCorp Vault cloud resources.
201 lines (200 loc) • 5.36 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Resource for configuring the duo MFA method.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vault from "@pulumi/vault";
*
* const example = new vault.identity.MfaDuo("example", {
* apiHostname: "api-xxxxxxxx.duosecurity.com",
* secretKey: "secret-key",
* integrationKey: "secret-int-key",
* });
* ```
*
* ## Import
*
* Resource can be imported using its `uuid` field, e.g.
*
* ```sh
* $ pulumi import vault:identity/mfaDuo:MfaDuo example 0d89c36a-4ff5-4d70-8749-bb6a5598aeec
* ```
*/
export declare class MfaDuo extends pulumi.CustomResource {
/**
* Get an existing MfaDuo 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<pulumi.ID>, state?: MfaDuoState, opts?: pulumi.CustomResourceOptions): MfaDuo;
/**
* Returns true if the given object is an instance of MfaDuo. 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 MfaDuo;
/**
* API hostname for Duo
*/
readonly apiHostname: pulumi.Output<string>;
/**
* Integration key for Duo
*/
readonly integrationKey: pulumi.Output<string>;
/**
* Method ID.
*/
readonly methodId: pulumi.Output<string>;
/**
* Mount accessor.
*/
readonly mountAccessor: pulumi.Output<string>;
/**
* Method name.
*/
readonly name: pulumi.Output<string>;
/**
* Target namespace. (requires Enterprise)
*/
readonly namespace: pulumi.Output<string | undefined>;
/**
* Method's namespace ID.
*/
readonly namespaceId: pulumi.Output<string>;
/**
* Method's namespace path.
*/
readonly namespacePath: pulumi.Output<string>;
/**
* Push information for Duo.
*/
readonly pushInfo: pulumi.Output<string | undefined>;
/**
* Secret key for Duo
*/
readonly secretKey: pulumi.Output<string>;
/**
* MFA type.
*/
readonly type: pulumi.Output<string>;
/**
* Require passcode upon MFA validation.
*/
readonly usePasscode: pulumi.Output<boolean | undefined>;
/**
* A template string for mapping Identity names to MFA methods.
*/
readonly usernameFormat: pulumi.Output<string | undefined>;
/**
* Resource UUID.
*/
readonly uuid: pulumi.Output<string>;
/**
* Create a MfaDuo 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: MfaDuoArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering MfaDuo resources.
*/
export interface MfaDuoState {
/**
* API hostname for Duo
*/
apiHostname?: pulumi.Input<string>;
/**
* Integration key for Duo
*/
integrationKey?: pulumi.Input<string>;
/**
* Method ID.
*/
methodId?: pulumi.Input<string>;
/**
* Mount accessor.
*/
mountAccessor?: pulumi.Input<string>;
/**
* Method name.
*/
name?: pulumi.Input<string>;
/**
* Target namespace. (requires Enterprise)
*/
namespace?: pulumi.Input<string>;
/**
* Method's namespace ID.
*/
namespaceId?: pulumi.Input<string>;
/**
* Method's namespace path.
*/
namespacePath?: pulumi.Input<string>;
/**
* Push information for Duo.
*/
pushInfo?: pulumi.Input<string>;
/**
* Secret key for Duo
*/
secretKey?: pulumi.Input<string>;
/**
* MFA type.
*/
type?: pulumi.Input<string>;
/**
* Require passcode upon MFA validation.
*/
usePasscode?: pulumi.Input<boolean>;
/**
* A template string for mapping Identity names to MFA methods.
*/
usernameFormat?: pulumi.Input<string>;
/**
* Resource UUID.
*/
uuid?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a MfaDuo resource.
*/
export interface MfaDuoArgs {
/**
* API hostname for Duo
*/
apiHostname: pulumi.Input<string>;
/**
* Integration key for Duo
*/
integrationKey: pulumi.Input<string>;
/**
* Target namespace. (requires Enterprise)
*/
namespace?: pulumi.Input<string>;
/**
* Push information for Duo.
*/
pushInfo?: pulumi.Input<string>;
/**
* Secret key for Duo
*/
secretKey: pulumi.Input<string>;
/**
* Require passcode upon MFA validation.
*/
usePasscode?: pulumi.Input<boolean>;
/**
* A template string for mapping Identity names to MFA methods.
*/
usernameFormat?: pulumi.Input<string>;
}