Copyright | (c) 2013-2015 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 user name. When enabled, the MFA device is required for every subsequent login by the user name associated with the device.
See: AWS API Reference for EnableMFADevice.
- 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 user for whom you want to enable the MFA device.
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.
emdAuthenticationCode1 :: Lens' EnableMFADevice Text Source
An authentication code emitted by the device.
emdAuthenticationCode2 :: Lens' EnableMFADevice Text Source
A subsequent authentication code emitted by the device.
Destructuring the Response
enableMFADeviceResponse :: EnableMFADeviceResponse Source
Creates a value of EnableMFADeviceResponse
with the minimum fields required to make a request.