Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Enables the specified MFA device and associates it with the specified IAM user. When enabled, the MFA device is required for every subsequent login by the IAM user associated with the device.
Synopsis
- data EnableMFADevice = EnableMFADevice' {}
- newEnableMFADevice :: Text -> Text -> Text -> Text -> EnableMFADevice
- enableMFADevice_userName :: Lens' EnableMFADevice Text
- enableMFADevice_serialNumber :: Lens' EnableMFADevice Text
- enableMFADevice_authenticationCode1 :: Lens' EnableMFADevice Text
- enableMFADevice_authenticationCode2 :: Lens' EnableMFADevice Text
- data EnableMFADeviceResponse = EnableMFADeviceResponse' {
- newEnableMFADeviceResponse :: EnableMFADeviceResponse
Creating a Request
data EnableMFADevice Source #
See: newEnableMFADevice
smart constructor.
EnableMFADevice' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> Text | |
-> EnableMFADevice |
Create a value of EnableMFADevice
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:userName:EnableMFADevice'
, enableMFADevice_userName
- The name of the IAM user for whom you want to enable the MFA device.
This parameter allows (through 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: _+=,.@-
$sel:serialNumber:EnableMFADevice'
, enableMFADevice_serialNumber
- 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) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@:/-
$sel:authenticationCode1:EnableMFADevice'
, enableMFADevice_authenticationCode1
- 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.
$sel:authenticationCode2:EnableMFADevice'
, enableMFADevice_authenticationCode2
- 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.
Request Lenses
enableMFADevice_userName :: Lens' EnableMFADevice Text Source #
The name of the IAM user for whom you want to enable the MFA device.
This parameter allows (through 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: _+=,.@-
enableMFADevice_serialNumber :: Lens' EnableMFADevice Text Source #
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) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@:/-
enableMFADevice_authenticationCode1 :: Lens' EnableMFADevice Text Source #
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.
enableMFADevice_authenticationCode2 :: Lens' EnableMFADevice Text Source #
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.
Destructuring the Response
data EnableMFADeviceResponse Source #
See: newEnableMFADeviceResponse
smart constructor.
Instances
Eq EnableMFADeviceResponse Source # | |
Defined in Amazonka.IAM.EnableMFADevice | |
Read EnableMFADeviceResponse Source # | |
Show EnableMFADeviceResponse Source # | |
Defined in Amazonka.IAM.EnableMFADevice showsPrec :: Int -> EnableMFADeviceResponse -> ShowS # show :: EnableMFADeviceResponse -> String # showList :: [EnableMFADeviceResponse] -> ShowS # | |
Generic EnableMFADeviceResponse Source # | |
Defined in Amazonka.IAM.EnableMFADevice type Rep EnableMFADeviceResponse :: Type -> Type # | |
NFData EnableMFADeviceResponse Source # | |
Defined in Amazonka.IAM.EnableMFADevice rnf :: EnableMFADeviceResponse -> () # | |
type Rep EnableMFADeviceResponse Source # | |
newEnableMFADeviceResponse :: EnableMFADeviceResponse Source #
Create a value of EnableMFADeviceResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.