Container for the parameters to the EnableMFADevice operation.
Namespace: Amazon.IdentityManagement.ModelEnables the specified MFA device and associates it with the specified user name. When enabled, the MFA device is required for every subsequent login by the user name associated with the device.
Assembly: AWSSDK (in AWSSDK.dll) Version: 1.4.10.0 (1.4.10.0)
Syntax
| C# | Visual Basic | Visual C++ |
public class EnableMFADeviceRequest : AmazonWebServiceRequest
Public Class EnableMFADeviceRequest _ Inherits AmazonWebServiceRequest
public ref class EnableMFADeviceRequest : public AmazonWebServiceRequest
Members
| All Members | Constructors | Properties | Methods |
| Member | Description | |
|---|---|---|
| EnableMFADeviceRequest()()()() | Initializes a new instance of the EnableMFADeviceRequest class | |
| AuthenticationCode1 |
An authentication code emitted by the device.
Constraints: | |
| AuthenticationCode2 |
A subsequent authentication code emitted by the device.
Constraints: | |
| Equals(Object) | (Inherited from Object.) | |
| GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| SerialNumber |
The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.
Constraints: | |
| ToString()()()() | (Inherited from Object.) | |
| UserName |
Name of the user for whom you want to enable the MFA device.
Constraints: | |
| WithAuthenticationCode1(String) |
Sets the AuthenticationCode1 property
| |
| WithAuthenticationCode2(String) |
Sets the AuthenticationCode2 property
| |
| WithSerialNumber(String) |
Sets the SerialNumber property
| |
| WithUserName(String) |
Sets the UserName property
|
Inheritance Hierarchy
System..::..Object
Amazon.Runtime..::..AmazonWebServiceRequest
Amazon.IdentityManagement.Model..::..EnableMFADeviceRequest
Amazon.Runtime..::..AmazonWebServiceRequest
Amazon.IdentityManagement.Model..::..EnableMFADeviceRequest