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

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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 IAM user. When enabled, the MFA device is required for every subsequent login by the IAM user associated with the device.

Synopsis

Creating a Request

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:

  • emdUserName - 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: _+=,.@-
  • emdSerialNumber - 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: =,.@:/-
  • emdAuthenticationCode1 - An authentication code emitted by the device. The format for this parameter is a string of six digits. Important: 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 .
  • emdAuthenticationCode2 - A subsequent authentication code emitted by the device. The format for this parameter is a string of six digits. Important: 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 .

data EnableMFADevice #

See: enableMFADevice smart constructor.

Instances
Eq EnableMFADevice # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

Data EnableMFADevice # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> EnableMFADevice -> c EnableMFADevice #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c EnableMFADevice #

toConstr :: EnableMFADevice -> Constr #

dataTypeOf :: EnableMFADevice -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c EnableMFADevice) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c EnableMFADevice) #

gmapT :: (forall b. Data b => b -> b) -> EnableMFADevice -> EnableMFADevice #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> EnableMFADevice -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> EnableMFADevice -> r #

gmapQ :: (forall d. Data d => d -> u) -> EnableMFADevice -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> EnableMFADevice -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> EnableMFADevice -> m EnableMFADevice #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> EnableMFADevice -> m EnableMFADevice #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> EnableMFADevice -> m EnableMFADevice #

Read EnableMFADevice # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

Show EnableMFADevice # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

Generic EnableMFADevice # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

Associated Types

type Rep EnableMFADevice :: * -> * #

Hashable EnableMFADevice # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

AWSRequest EnableMFADevice # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

Associated Types

type Rs EnableMFADevice :: * #

ToHeaders EnableMFADevice # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

ToPath EnableMFADevice # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

ToQuery EnableMFADevice # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

NFData EnableMFADevice # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

Methods

rnf :: EnableMFADevice -> () #

type Rep EnableMFADevice # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

type Rep EnableMFADevice = D1 (MetaData "EnableMFADevice" "Network.AWS.IAM.EnableMFADevice" "amazonka-iam-1.6.0-KLHg33OPBsA2oss7MTCyZq" False) (C1 (MetaCons "EnableMFADevice'" PrefixI True) ((S1 (MetaSel (Just "_emdUserName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_emdSerialNumber") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_emdAuthenticationCode1") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_emdAuthenticationCode2") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs EnableMFADevice # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

Request Lenses

emdUserName :: Lens' EnableMFADevice Text #

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: _+=,.@-

emdSerialNumber :: Lens' EnableMFADevice Text #

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: =,.@:/-

emdAuthenticationCode1 :: Lens' EnableMFADevice Text #

An authentication code emitted by the device. The format for this parameter is a string of six digits. Important: 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 .

emdAuthenticationCode2 :: Lens' EnableMFADevice Text #

A subsequent authentication code emitted by the device. The format for this parameter is a string of six digits. Important: 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

enableMFADeviceResponse :: EnableMFADeviceResponse #

Creates a value of EnableMFADeviceResponse with the minimum fields required to make a request.

data EnableMFADeviceResponse #

See: enableMFADeviceResponse smart constructor.

Instances
Eq EnableMFADeviceResponse # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

Data EnableMFADeviceResponse # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> EnableMFADeviceResponse -> c EnableMFADeviceResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c EnableMFADeviceResponse #

toConstr :: EnableMFADeviceResponse -> Constr #

dataTypeOf :: EnableMFADeviceResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c EnableMFADeviceResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c EnableMFADeviceResponse) #

gmapT :: (forall b. Data b => b -> b) -> EnableMFADeviceResponse -> EnableMFADeviceResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> EnableMFADeviceResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> EnableMFADeviceResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> EnableMFADeviceResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> EnableMFADeviceResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> EnableMFADeviceResponse -> m EnableMFADeviceResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> EnableMFADeviceResponse -> m EnableMFADeviceResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> EnableMFADeviceResponse -> m EnableMFADeviceResponse #

Read EnableMFADeviceResponse # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

Show EnableMFADeviceResponse # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

Generic EnableMFADeviceResponse # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

Associated Types

type Rep EnableMFADeviceResponse :: * -> * #

NFData EnableMFADeviceResponse # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

Methods

rnf :: EnableMFADeviceResponse -> () #

type Rep EnableMFADeviceResponse # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

type Rep EnableMFADeviceResponse = D1 (MetaData "EnableMFADeviceResponse" "Network.AWS.IAM.EnableMFADevice" "amazonka-iam-1.6.0-KLHg33OPBsA2oss7MTCyZq" False) (C1 (MetaCons "EnableMFADeviceResponse'" PrefixI False) (U1 :: * -> *))