vault.identity.MfaDuo
Explore with Pulumi AI
Resource for configuring the duo MFA method.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Vault = Pulumi.Vault;
return await Deployment.RunAsync(() =>
{
var example = new Vault.Identity.MfaDuo("example", new()
{
ApiHostname = "api-xxxxxxxx.duosecurity.com",
IntegrationKey = "secret-int-key",
SecretKey = "secret-key",
});
});
package main
import (
"github.com/pulumi/pulumi-vault/sdk/v5/go/vault/identity"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := identity.NewMfaDuo(ctx, "example", &identity.MfaDuoArgs{
ApiHostname: pulumi.String("api-xxxxxxxx.duosecurity.com"),
IntegrationKey: pulumi.String("secret-int-key"),
SecretKey: pulumi.String("secret-key"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vault.identity.MfaDuo;
import com.pulumi.vault.identity.MfaDuoArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new MfaDuo("example", MfaDuoArgs.builder()
.apiHostname("api-xxxxxxxx.duosecurity.com")
.integrationKey("secret-int-key")
.secretKey("secret-key")
.build());
}
}
import pulumi
import pulumi_vault as vault
example = vault.identity.MfaDuo("example",
api_hostname="api-xxxxxxxx.duosecurity.com",
integration_key="secret-int-key",
secret_key="secret-key")
import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";
const example = new vault.identity.MfaDuo("example", {
apiHostname: "api-xxxxxxxx.duosecurity.com",
integrationKey: "secret-int-key",
secretKey: "secret-key",
});
resources:
example:
type: vault:identity:MfaDuo
properties:
apiHostname: api-xxxxxxxx.duosecurity.com
integrationKey: secret-int-key
secretKey: secret-key
Create MfaDuo Resource
new MfaDuo(name: string, args: MfaDuoArgs, opts?: CustomResourceOptions);
@overload
def MfaDuo(resource_name: str,
opts: Optional[ResourceOptions] = None,
api_hostname: Optional[str] = None,
integration_key: Optional[str] = None,
namespace: Optional[str] = None,
push_info: Optional[str] = None,
secret_key: Optional[str] = None,
use_passcode: Optional[bool] = None,
username_format: Optional[str] = None)
@overload
def MfaDuo(resource_name: str,
args: MfaDuoArgs,
opts: Optional[ResourceOptions] = None)
func NewMfaDuo(ctx *Context, name string, args MfaDuoArgs, opts ...ResourceOption) (*MfaDuo, error)
public MfaDuo(string name, MfaDuoArgs args, CustomResourceOptions? opts = null)
public MfaDuo(String name, MfaDuoArgs args)
public MfaDuo(String name, MfaDuoArgs args, CustomResourceOptions options)
type: vault:identity:MfaDuo
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MfaDuoArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args MfaDuoArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args MfaDuoArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MfaDuoArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MfaDuoArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
MfaDuo Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The MfaDuo resource accepts the following input properties:
- Api
Hostname string API hostname for Duo
- Integration
Key string Integration key for Duo
- Secret
Key string Secret key for Duo
- Namespace string
Target namespace. (requires Enterprise)
- Push
Info string Push information for Duo.
- Use
Passcode bool Require passcode upon MFA validation.
- Username
Format string A template string for mapping Identity names to MFA methods.
- Api
Hostname string API hostname for Duo
- Integration
Key string Integration key for Duo
- Secret
Key string Secret key for Duo
- Namespace string
Target namespace. (requires Enterprise)
- Push
Info string Push information for Duo.
- Use
Passcode bool Require passcode upon MFA validation.
- Username
Format string A template string for mapping Identity names to MFA methods.
- api
Hostname String API hostname for Duo
- integration
Key String Integration key for Duo
- secret
Key String Secret key for Duo
- namespace String
Target namespace. (requires Enterprise)
- push
Info String Push information for Duo.
- use
Passcode Boolean Require passcode upon MFA validation.
- username
Format String A template string for mapping Identity names to MFA methods.
- api
Hostname string API hostname for Duo
- integration
Key string Integration key for Duo
- secret
Key string Secret key for Duo
- namespace string
Target namespace. (requires Enterprise)
- push
Info string Push information for Duo.
- use
Passcode boolean Require passcode upon MFA validation.
- username
Format string A template string for mapping Identity names to MFA methods.
- api_
hostname str API hostname for Duo
- integration_
key str Integration key for Duo
- secret_
key str Secret key for Duo
- namespace str
Target namespace. (requires Enterprise)
- push_
info str Push information for Duo.
- use_
passcode bool Require passcode upon MFA validation.
- username_
format str A template string for mapping Identity names to MFA methods.
- api
Hostname String API hostname for Duo
- integration
Key String Integration key for Duo
- secret
Key String Secret key for Duo
- namespace String
Target namespace. (requires Enterprise)
- push
Info String Push information for Duo.
- use
Passcode Boolean Require passcode upon MFA validation.
- username
Format String A template string for mapping Identity names to MFA methods.
Outputs
All input properties are implicitly available as output properties. Additionally, the MfaDuo resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Method
Id string Method ID.
- Mount
Accessor string Mount accessor.
- Name string
Method name.
- Namespace
Id string Method's namespace ID.
- Namespace
Path string Method's namespace path.
- Type string
MFA type.
- Uuid string
Resource UUID.
- Id string
The provider-assigned unique ID for this managed resource.
- Method
Id string Method ID.
- Mount
Accessor string Mount accessor.
- Name string
Method name.
- Namespace
Id string Method's namespace ID.
- Namespace
Path string Method's namespace path.
- Type string
MFA type.
- Uuid string
Resource UUID.
- id String
The provider-assigned unique ID for this managed resource.
- method
Id String Method ID.
- mount
Accessor String Mount accessor.
- name String
Method name.
- namespace
Id String Method's namespace ID.
- namespace
Path String Method's namespace path.
- type String
MFA type.
- uuid String
Resource UUID.
- id string
The provider-assigned unique ID for this managed resource.
- method
Id string Method ID.
- mount
Accessor string Mount accessor.
- name string
Method name.
- namespace
Id string Method's namespace ID.
- namespace
Path string Method's namespace path.
- type string
MFA type.
- uuid string
Resource UUID.
- id str
The provider-assigned unique ID for this managed resource.
- method_
id str Method ID.
- mount_
accessor str Mount accessor.
- name str
Method name.
- namespace_
id str Method's namespace ID.
- namespace_
path str Method's namespace path.
- type str
MFA type.
- uuid str
Resource UUID.
- id String
The provider-assigned unique ID for this managed resource.
- method
Id String Method ID.
- mount
Accessor String Mount accessor.
- name String
Method name.
- namespace
Id String Method's namespace ID.
- namespace
Path String Method's namespace path.
- type String
MFA type.
- uuid String
Resource UUID.
Look up Existing MfaDuo Resource
Get an existing MfaDuo resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: MfaDuoState, opts?: CustomResourceOptions): MfaDuo
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
api_hostname: Optional[str] = None,
integration_key: Optional[str] = None,
method_id: Optional[str] = None,
mount_accessor: Optional[str] = None,
name: Optional[str] = None,
namespace: Optional[str] = None,
namespace_id: Optional[str] = None,
namespace_path: Optional[str] = None,
push_info: Optional[str] = None,
secret_key: Optional[str] = None,
type: Optional[str] = None,
use_passcode: Optional[bool] = None,
username_format: Optional[str] = None,
uuid: Optional[str] = None) -> MfaDuo
func GetMfaDuo(ctx *Context, name string, id IDInput, state *MfaDuoState, opts ...ResourceOption) (*MfaDuo, error)
public static MfaDuo Get(string name, Input<string> id, MfaDuoState? state, CustomResourceOptions? opts = null)
public static MfaDuo get(String name, Output<String> id, MfaDuoState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Api
Hostname string API hostname for Duo
- Integration
Key string Integration key for Duo
- Method
Id string Method ID.
- Mount
Accessor string Mount accessor.
- Name string
Method name.
- Namespace string
Target namespace. (requires Enterprise)
- Namespace
Id string Method's namespace ID.
- Namespace
Path string Method's namespace path.
- Push
Info string Push information for Duo.
- Secret
Key string Secret key for Duo
- Type string
MFA type.
- Use
Passcode bool Require passcode upon MFA validation.
- Username
Format string A template string for mapping Identity names to MFA methods.
- Uuid string
Resource UUID.
- Api
Hostname string API hostname for Duo
- Integration
Key string Integration key for Duo
- Method
Id string Method ID.
- Mount
Accessor string Mount accessor.
- Name string
Method name.
- Namespace string
Target namespace. (requires Enterprise)
- Namespace
Id string Method's namespace ID.
- Namespace
Path string Method's namespace path.
- Push
Info string Push information for Duo.
- Secret
Key string Secret key for Duo
- Type string
MFA type.
- Use
Passcode bool Require passcode upon MFA validation.
- Username
Format string A template string for mapping Identity names to MFA methods.
- Uuid string
Resource UUID.
- api
Hostname String API hostname for Duo
- integration
Key String Integration key for Duo
- method
Id String Method ID.
- mount
Accessor String Mount accessor.
- name String
Method name.
- namespace String
Target namespace. (requires Enterprise)
- namespace
Id String Method's namespace ID.
- namespace
Path String Method's namespace path.
- push
Info String Push information for Duo.
- secret
Key String Secret key for Duo
- type String
MFA type.
- use
Passcode Boolean Require passcode upon MFA validation.
- username
Format String A template string for mapping Identity names to MFA methods.
- uuid String
Resource UUID.
- api
Hostname string API hostname for Duo
- integration
Key string Integration key for Duo
- method
Id string Method ID.
- mount
Accessor string Mount accessor.
- name string
Method name.
- namespace string
Target namespace. (requires Enterprise)
- namespace
Id string Method's namespace ID.
- namespace
Path string Method's namespace path.
- push
Info string Push information for Duo.
- secret
Key string Secret key for Duo
- type string
MFA type.
- use
Passcode boolean Require passcode upon MFA validation.
- username
Format string A template string for mapping Identity names to MFA methods.
- uuid string
Resource UUID.
- api_
hostname str API hostname for Duo
- integration_
key str Integration key for Duo
- method_
id str Method ID.
- mount_
accessor str Mount accessor.
- name str
Method name.
- namespace str
Target namespace. (requires Enterprise)
- namespace_
id str Method's namespace ID.
- namespace_
path str Method's namespace path.
- push_
info str Push information for Duo.
- secret_
key str Secret key for Duo
- type str
MFA type.
- use_
passcode bool Require passcode upon MFA validation.
- username_
format str A template string for mapping Identity names to MFA methods.
- uuid str
Resource UUID.
- api
Hostname String API hostname for Duo
- integration
Key String Integration key for Duo
- method
Id String Method ID.
- mount
Accessor String Mount accessor.
- name String
Method name.
- namespace String
Target namespace. (requires Enterprise)
- namespace
Id String Method's namespace ID.
- namespace
Path String Method's namespace path.
- push
Info String Push information for Duo.
- secret
Key String Secret key for Duo
- type String
MFA type.
- use
Passcode Boolean Require passcode upon MFA validation.
- username
Format String A template string for mapping Identity names to MFA methods.
- uuid String
Resource UUID.
Import
Resource can be imported using its uuid
field, e.g.
$ pulumi import vault:identity/mfaDuo:MfaDuo example 0d89c36a-4ff5-4d70-8749-bb6a5598aeec
Package Details
- Repository
- Vault pulumi/pulumi-vault
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
vault
Terraform Provider.