amazonka-iam-1.4.3: 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.CreateVirtualMFADevice

Contents

Description

Creates a new virtual MFA device for the AWS account. After creating the virtual MFA, use EnableMFADevice to attach the MFA device to an IAM user. For more information about creating and working with virtual MFA devices, go to Using a Virtual MFA Device in the Using IAM guide.

For information about limits on the number of MFA devices you can create, see Limitations on Entities in the Using IAM guide.

The seed information contained in the QR code and the Base32 string should be treated like any other secret access information, such as your AWS access keys or your passwords. After you provision your virtual device, you should ensure that the information is destroyed following secure procedures.

Synopsis

Creating a Request

createVirtualMFADevice Source #

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

Use one of the following lenses to modify other fields as desired:

data CreateVirtualMFADevice Source #

See: createVirtualMFADevice smart constructor.

Instances

Eq CreateVirtualMFADevice Source # 
Data CreateVirtualMFADevice Source # 

Methods

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

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

toConstr :: CreateVirtualMFADevice -> Constr #

dataTypeOf :: CreateVirtualMFADevice -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateVirtualMFADevice Source # 
Show CreateVirtualMFADevice Source # 
Generic CreateVirtualMFADevice Source # 
Hashable CreateVirtualMFADevice Source # 
NFData CreateVirtualMFADevice Source # 

Methods

rnf :: CreateVirtualMFADevice -> () #

AWSRequest CreateVirtualMFADevice Source # 
ToPath CreateVirtualMFADevice Source # 
ToHeaders CreateVirtualMFADevice Source # 
ToQuery CreateVirtualMFADevice Source # 
type Rep CreateVirtualMFADevice Source # 
type Rep CreateVirtualMFADevice = D1 (MetaData "CreateVirtualMFADevice" "Network.AWS.IAM.CreateVirtualMFADevice" "amazonka-iam-1.4.3-KkHaDC3pmsZLURksVtoSGT" False) (C1 (MetaCons "CreateVirtualMFADevice'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cvmdPath") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_cvmdVirtualMFADeviceName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs CreateVirtualMFADevice Source # 

Request Lenses

cvmdPath :: Lens' CreateVirtualMFADevice (Maybe Text) Source #

The path for the virtual MFA device. For more information about paths, see IAM Identifiers in the Using IAM guide.

This parameter is optional. If it is not included, it defaults to a slash (/).

cvmdVirtualMFADeviceName :: Lens' CreateVirtualMFADevice Text Source #

The name of the virtual MFA device. Use with path to uniquely identify a virtual MFA device.

Destructuring the Response

createVirtualMFADeviceResponse Source #

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

Use one of the following lenses to modify other fields as desired:

data CreateVirtualMFADeviceResponse Source #

Contains the response to a successful CreateVirtualMFADevice request.

See: createVirtualMFADeviceResponse smart constructor.

Instances

Eq CreateVirtualMFADeviceResponse Source # 
Data CreateVirtualMFADeviceResponse Source # 

Methods

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

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

toConstr :: CreateVirtualMFADeviceResponse -> Constr #

dataTypeOf :: CreateVirtualMFADeviceResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateVirtualMFADeviceResponse Source # 
Show CreateVirtualMFADeviceResponse Source # 
Generic CreateVirtualMFADeviceResponse Source # 
NFData CreateVirtualMFADeviceResponse Source # 
type Rep CreateVirtualMFADeviceResponse Source # 
type Rep CreateVirtualMFADeviceResponse = D1 (MetaData "CreateVirtualMFADeviceResponse" "Network.AWS.IAM.CreateVirtualMFADevice" "amazonka-iam-1.4.3-KkHaDC3pmsZLURksVtoSGT" False) (C1 (MetaCons "CreateVirtualMFADeviceResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cvmdrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)) (S1 (MetaSel (Just Symbol "_cvmdrsVirtualMFADevice") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 VirtualMFADevice))))

Response Lenses