class CfnVirtualMFADevicePropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.IAM.Mixins.CfnVirtualMFADevicePropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsiam/mixins#CfnVirtualMFADevicePropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.iam.mixins.CfnVirtualMFADevicePropsMixin |
Python | aws_cdk.mixins_preview.aws_iam.mixins.CfnVirtualMFADevicePropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_iam » mixins » CfnVirtualMFADevicePropsMixin |
Implements
IMixin
Extends
Mixin
Creates a new virtual MFA device for the AWS account .
After creating the virtual MFA, use EnableMFADevice to attach the MFA device to an IAM user. For more information about creating and working with virtual MFA devices, see Using a virtual MFA device in the IAM User Guide .
For information about the maximum number of MFA devices you can create, see IAM and AWS STS quotas in the IAM User Guide .
The seed information contained in the QR code and the Base32 string should be treated like any other secret access information. In other words, protect the seed information as you would your AWS access keys or your passwords. After you provision your virtual device, you should ensure that the information is destroyed following secure procedures.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-virtualmfadevice.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as iam_mixins } from '@aws-cdk/mixins-preview/aws-iam';
const cfnVirtualMFADevicePropsMixin = new iam_mixins.CfnVirtualMFADevicePropsMixin({
path: 'path',
tags: [{
key: 'key',
value: 'value',
}],
users: ['users'],
virtualMfaDeviceName: 'virtualMfaDeviceName',
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnVirtualMFADevicePropsMixin(props: CfnVirtualMFADeviceMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Virtual MFADevice Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::IAM::VirtualMFADevice.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript