CfnVirtualMFADevicePropsMixin

class aws_cdk.mixins_preview.aws_iam.mixins.CfnVirtualMFADevicePropsMixin(props, *, strategy=None)

Bases: 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 . .. epigraph:

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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-virtualmfadevice.html

CloudformationResource:

AWS::IAM::VirtualMFADevice

Mixin:

true

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview import mixins
from aws_cdk.mixins_preview.aws_iam import mixins as iam_mixins

cfn_virtual_mFADevice_props_mixin = iam_mixins.CfnVirtualMFADevicePropsMixin(iam_mixins.CfnVirtualMFADeviceMixinProps(
    path="path",
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    users=["users"],
    virtual_mfa_device_name="virtualMfaDeviceName"
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

Create a mixin to apply properties to AWS::IAM::VirtualMFADevice.

Parameters:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['path', 'tags', 'users', 'virtualMfaDeviceName']

Static Methods

classmethod is_mixin(x)

(experimental) Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental