AWS SDK for .NET Documentation
EnableMFADeviceRequest Class
AmazonAmazon.IdentityManagement.ModelEnableMFADeviceRequest Did this page help you?   Yes   No    Tell us about it...
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.

Declaration Syntax
C#
public class EnableMFADeviceRequest : AmazonWebServiceRequest
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
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
Object
AmazonWebServiceRequest
 EnableMFADeviceRequest
See Also

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.20.0 (1.5.20.0)