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 # 
Data 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 # 
Show EnableMFADevice # 
Generic EnableMFADevice # 
Hashable EnableMFADevice # 
NFData EnableMFADevice # 

Methods

rnf :: EnableMFADevice -> () #

AWSRequest EnableMFADevice # 
ToHeaders EnableMFADevice # 
ToPath EnableMFADevice # 
ToQuery EnableMFADevice # 
type Rep EnableMFADevice # 
type Rep EnableMFADevice = D1 * (MetaData "EnableMFADevice" "Network.AWS.IAM.EnableMFADevice" "amazonka-iam-1.6.0-1EzdHSXYgBWIEzsCXYmity" False) (C1 * (MetaCons "EnableMFADevice'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_emdUserName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_emdSerialNumber") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_emdAuthenticationCode1") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_emdAuthenticationCode2") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs 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 # 
Data EnableMFADeviceResponse # 

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 # 
Show EnableMFADeviceResponse # 
Generic EnableMFADeviceResponse # 
NFData EnableMFADeviceResponse # 

Methods

rnf :: EnableMFADeviceResponse -> () #

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