public static interface EnableMfaDeviceRequest.Builder extends IamRequest.Builder, CopyableBuilder<EnableMfaDeviceRequest.Builder,EnableMfaDeviceRequest>
Modifier and Type | Method and 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 |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
EnableMfaDeviceRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
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.
|
build
overrideConfiguration
copy
applyMutation, 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.
EnableMfaDeviceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.EnableMfaDeviceRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.