CopyableBuilder<EnableMFADeviceRequest.Builder,EnableMFADeviceRequest>
, SdkBuilder<EnableMFADeviceRequest.Builder,EnableMFADeviceRequest>
public static interface EnableMFADeviceRequest.Builder extends CopyableBuilder<EnableMFADeviceRequest.Builder,EnableMFADeviceRequest>
Modifier and Type | Method | Description |
---|---|---|
EnableMFADeviceRequest.Builder |
authenticationCode1(String authenticationCode1) |
An authentication code emitted by the device.
|
EnableMFADeviceRequest.Builder |
authenticationCode2(String authenticationCode2) |
A subsequent authentication code emitted by the device.
|
EnableMFADeviceRequest.Builder |
serialNumber(String serialNumber) |
The serial number that uniquely identifies the MFA device.
|
EnableMFADeviceRequest.Builder |
userName(String userName) |
The name of the IAM user for whom you want to enable the MFA device.
|
copy
apply, build
EnableMFADeviceRequest.Builder userName(String userName)
The name of the IAM user for whom you want to enable the MFA device.
This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
userName
- The name of the IAM user for whom you want to enable the MFA device.
This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
EnableMFADeviceRequest.Builder serialNumber(String serialNumber)
The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.
This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@:/-
serialNumber
- The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number
is the device ARN.
This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@:/-
EnableMFADeviceRequest.Builder authenticationCode1(String authenticationCode1)
An authentication code emitted by the device.
The format for this parameter is a string of 6 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.
authenticationCode1
- An authentication code emitted by the device.
The format for this parameter is a string of 6 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.
EnableMFADeviceRequest.Builder authenticationCode2(String authenticationCode2)
A subsequent authentication code emitted by the device.
The format for this parameter is a string of 6 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.
authenticationCode2
- A subsequent authentication code emitted by the device.
The format for this parameter is a string of 6 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.
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.