amazonka-iam-1.6.1: 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 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:

  • 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 Source #

See: enableMFADevice smart constructor.

Instances
Eq EnableMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

Data EnableMFADevice Source # 
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 Source # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

Show EnableMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

Generic EnableMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

Associated Types

type Rep EnableMFADevice :: Type -> Type #

Hashable EnableMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

AWSRequest EnableMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

Associated Types

type Rs EnableMFADevice :: Type #

ToHeaders EnableMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

ToPath EnableMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

ToQuery EnableMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

NFData EnableMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

Methods

rnf :: EnableMFADevice -> () #

type Rep EnableMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

type Rep EnableMFADevice = D1 (MetaData "EnableMFADevice" "Network.AWS.IAM.EnableMFADevice" "amazonka-iam-1.6.1-BDjAp2BAcQu3GSS4Bsr6zu" 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 Source # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

Request Lenses

emdUserName :: Lens' EnableMFADevice Text Source #

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 Source #

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 Source #

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 Source #

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 Source #

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

data EnableMFADeviceResponse Source #

See: enableMFADeviceResponse smart constructor.

Instances
Eq EnableMFADeviceResponse Source # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

Data EnableMFADeviceResponse Source # 
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 Source # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

Show EnableMFADeviceResponse Source # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

Generic EnableMFADeviceResponse Source # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

Associated Types

type Rep EnableMFADeviceResponse :: Type -> Type #

NFData EnableMFADeviceResponse Source # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

Methods

rnf :: EnableMFADeviceResponse -> () #

type Rep EnableMFADeviceResponse Source # 
Instance details

Defined in Network.AWS.IAM.EnableMFADevice

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