Class MfaDuo
Provides a resource to manage Duo MFA.
Note this feature is available only with Vault Enterprise.
Example Usage
using Pulumi;
using Vault = Pulumi.Vault;
class MyStack : Stack
{
public MyStack()
{
var userpass = new Vault.AuthBackend("userpass", new Vault.AuthBackendArgs
{
Path = "userpass",
Type = "userpass",
});
var myDuo = new Vault.MfaDuo("myDuo", new Vault.MfaDuoArgs
{
ApiHostname = "api-2b5c39f5.duosecurity.com",
IntegrationKey = "BIACEUEAXI20BNWTEYXT",
MountAccessor = userpass.Accessor,
SecretKey = "8C7THtrIigh2rPZQMbguugt8IUftWhMRCOBzbuyz",
});
}
}
Inherited Members
Namespace: Pulumi.Vault
Assembly: Pulumi.Vault.dll
Syntax
public class MfaDuo : CustomResource
Constructors
View SourceMfaDuo(String, MfaDuoArgs, CustomResourceOptions)
Create a MfaDuo resource with the given unique name, arguments, and options.
Declaration
public MfaDuo(string name, MfaDuoArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| MfaDuoArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceApiHostname
API hostname for Duo.
Declaration
public Output<string> ApiHostname { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
IntegrationKey
Integration key for Duo.
Declaration
public Output<string> IntegrationKey { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
MountAccessor
The mount to tie this method to for use in automatic mappings. The mapping will use the Name field of Aliases associated with this mount as the username in the mapping.
Declaration
public Output<string> MountAccessor { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
Name of the MFA method.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PushInfo
Push information for Duo.
Declaration
public Output<string> PushInfo { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SecretKey
Secret key for Duo.
Declaration
public Output<string> SecretKey { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
UsernameFormat
A format string for mapping Identity names to MFA method names. Values to substitute should be placed in {{}}.
Declaration
public Output<string> UsernameFormat { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, MfaDuoState, CustomResourceOptions)
Get an existing MfaDuo resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static MfaDuo Get(string name, Input<string> id, MfaDuoState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| MfaDuoState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| MfaDuo |