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

Copyright(c) 2013-2016 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 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:

data EnableMFADevice Source #

See: enableMFADevice smart constructor.

Instances

Eq EnableMFADevice Source # 
Data EnableMFADevice Source # 

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

Methods

rnf :: EnableMFADevice -> () #

AWSRequest EnableMFADevice Source # 
ToPath EnableMFADevice Source # 
ToHeaders EnableMFADevice Source # 
ToQuery EnableMFADevice Source # 
type Rep EnableMFADevice Source # 
type Rep EnableMFADevice = D1 (MetaData "EnableMFADevice" "Network.AWS.IAM.EnableMFADevice" "amazonka-iam-1.4.4-BicPZt3TaHh2CoAkQqkWBu" 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 Source # 

Request Lenses

emdUserName :: Lens' EnableMFADevice Text Source #

The name of the IAM user for whom you want to enable the MFA device.

The regex pattern for this parameter is 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.

The regex pattern for this parameter is 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 6 digits.

emdAuthenticationCode2 :: Lens' EnableMFADevice Text Source #

A subsequent authentication code emitted by the device.

The format for this parameter is a string of 6 digits.

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

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

Methods

rnf :: EnableMFADeviceResponse -> () #

type Rep EnableMFADeviceResponse Source # 
type Rep EnableMFADeviceResponse = D1 (MetaData "EnableMFADeviceResponse" "Network.AWS.IAM.EnableMFADevice" "amazonka-iam-1.4.4-BicPZt3TaHh2CoAkQqkWBu" False) (C1 (MetaCons "EnableMFADeviceResponse'" PrefixI False) U1)