Container for the parameters to the EnableMFADevice operation.

Enables 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.

Namespace: Amazon.IdentityManagement.Model
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  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
EnableMFADeviceRequest()()()()
Initializes a new instance of the EnableMFADeviceRequest class
AuthenticationCode1
An authentication code emitted by the device.

Constraints:

Length
6 - 6
Pattern
[\d]*

AuthenticationCode2
A subsequent authentication code emitted by the device.

Constraints:

Length
6 - 6
Pattern
[\d]*

Equals(Object)
Determines whether the specified Object is equal to the current 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:

Length
9 - 256
Pattern
[\w+=/:,.@-]*

ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
UserName
Name of the user for whom you want to enable the MFA device.

Constraints:

Length
1 - 128
Pattern
[\w+=,.@-]*

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

See Also