Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
- enableMFADevice :: Text -> Text -> Text -> Text -> EnableMFADevice
- data EnableMFADevice
- emdUserName :: Lens' EnableMFADevice Text
- emdSerialNumber :: Lens' EnableMFADevice Text
- emdAuthenticationCode1 :: Lens' EnableMFADevice Text
- emdAuthenticationCode2 :: Lens' EnableMFADevice Text
- enableMFADeviceResponse :: EnableMFADeviceResponse
- data EnableMFADeviceResponse
Creating a Request
:: Text | |
-> Text | |
-> Text | |
-> Text | |
-> EnableMFADevice |
Creates a value of EnableMFADevice
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data EnableMFADevice Source #
See: enableMFADevice
smart constructor.
Request Lenses
emdUserName :: Lens' EnableMFADevice Text Source #
The name of the IAM user for whom you want to enable the MFA device.
The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.'-
emdSerialNumber :: Lens' EnableMFADevice Text Source #
The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.
The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =/:,.'-
emdAuthenticationCode1 :: Lens' EnableMFADevice Text Source #
An authentication code emitted by the device.
The format for this parameter is a string of 6 digits.
emdAuthenticationCode2 :: Lens' EnableMFADevice Text Source #
A subsequent authentication code emitted by the device.
The format for this parameter is a string of 6 digits.
Destructuring the Response
enableMFADeviceResponse :: EnableMFADeviceResponse Source #
Creates a value of EnableMFADeviceResponse
with the minimum fields required to make a request.
data EnableMFADeviceResponse Source #
See: enableMFADeviceResponse
smart constructor.