class Aws::IAM::Types::EnableMFADeviceRequest
@note When making an API call, you may pass EnableMFADeviceRequest
data as a hash: { user_name: "existingUserNameType", # required serial_number: "serialNumberType", # required authentication_code_1: "authenticationCodeType", # required authentication_code_2: "authenticationCodeType", # required }
@!attribute [rw] user_name
The name of the IAM user for whom you want to enable the MFA device. This parameter allows (through its [regex pattern][1]) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: \_+=,.@- [1]: http://wikipedia.org/wiki/regex @return [String]
@!attribute [rw] serial_number
The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN. This parameter allows (through its [regex pattern][1]) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@:/- [1]: http://wikipedia.org/wiki/regex @return [String]
@!attribute [rw] authentication_code_1
An authentication code emitted by the device. The format for this parameter is a string of six digits. Submit your request immediately after generating the authentication codes. If you generate the codes and then wait too long to submit the request, the MFA device successfully associates with the user but the MFA device becomes out of sync. This happens because time-based one-time passwords (TOTP) expire after a short period of time. If this happens, you can [resync the device][1]. [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_mfa_sync.html @return [String]
@!attribute [rw] authentication_code_2
A subsequent authentication code emitted by the device. The format for this parameter is a string of six digits. Submit your request immediately after generating the authentication codes. If you generate the codes and then wait too long to submit the request, the MFA device successfully associates with the user but the MFA device becomes out of sync. This happens because time-based one-time passwords (TOTP) expire after a short period of time. If this happens, you can [resync the device][1]. [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_mfa_sync.html @return [String]
@see docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/EnableMFADeviceRequest AWS API Documentation
Constants
- SENSITIVE