amazonka-iam-1.3.1: Amazon Identity and Access Management SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.IAM.EnableMFADevice

Contents

Description

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.

Synopsis

Creating a Request

enableMFADevice Source

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:

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.