Class CfnVirtualMFADevice
Creates a new virtual MFA device for the AWS account .
Inherited Members
Namespace: Amazon.CDK.AWS.IAM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnVirtualMFADevice : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnVirtualMFADevice
Inherits CfnResource
Implements IInspectable, ITaggable
Remarks
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: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-virtualmfadevice.html
CloudformationResource: AWS::IAM::VirtualMFADevice
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IAM;
var cfnVirtualMFADevice = new CfnVirtualMFADevice(this, "MyCfnVirtualMFADevice", new CfnVirtualMFADeviceProps {
Users = new [] { "users" },
// the properties below are optional
Path = "path",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
VirtualMfaDeviceName = "virtualMfaDeviceName"
});
Synopsis
Constructors
CfnVirtualMFADevice(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnVirtualMFADevice(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnVirtualMFADevice(Construct, String, ICfnVirtualMFADeviceProps) |
Properties
AttrSerialNumber | Returns the serial number for the specified |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
Path | The path for the virtual MFA device. |
Tags | Tag Manager which manages the tags for this resource. |
TagsRaw | A list of tags that you want to attach to the new IAM virtual MFA device. |
Users | The IAM user associated with this virtual MFA device. |
VirtualMfaDeviceName | The name of the virtual MFA device, which must be unique. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnVirtualMFADevice(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnVirtualMFADevice(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnVirtualMFADevice(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnVirtualMFADevice(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnVirtualMFADevice(Construct, String, ICfnVirtualMFADeviceProps)
public CfnVirtualMFADevice(Construct scope, string id, ICfnVirtualMFADeviceProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnVirtualMFADeviceProps
Resource properties.
Properties
AttrSerialNumber
Returns the serial number for the specified AWS::IAM::VirtualMFADevice
resource.
public virtual string AttrSerialNumber { get; }
Property Value
System.String
Remarks
CloudformationAttribute: SerialNumber
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
Path
The path for the virtual MFA device.
public virtual string Path { get; set; }
Property Value
System.String
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
TagsRaw
A list of tags that you want to attach to the new IAM virtual MFA device.
public virtual ICfnTag[] TagsRaw { get; set; }
Property Value
ICfnTag[]
Users
The IAM user associated with this virtual MFA device.
public virtual string[] Users { get; set; }
Property Value
System.String[]
VirtualMfaDeviceName
The name of the virtual MFA device, which must be unique.
public virtual string VirtualMfaDeviceName { get; set; }
Property Value
System.String
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>