amazonka-iam-1.4.5: 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 IAM User Guide .

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

Important: 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 #

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:

  • cvmdPath - The path for the virtual MFA device. For more information about paths, see IAM Identifiers in the IAM User Guide . This parameter is optional. If it is not included, it defaults to a slash (). The <http:wikipedia.orgwikiregex regex pattern> for this parameter is a string of characters consisting of either a forward slash () by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (u0021) thru the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters.
  • cvmdVirtualMFADeviceName - The name of the virtual MFA device. Use with path to uniquely identify a virtual 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: =,.@-

data CreateVirtualMFADevice #

See: createVirtualMFADevice smart constructor.

Instances

Eq CreateVirtualMFADevice # 
Data CreateVirtualMFADevice # 

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

Methods

rnf :: CreateVirtualMFADevice -> () #

AWSRequest CreateVirtualMFADevice # 
ToQuery CreateVirtualMFADevice # 
ToPath CreateVirtualMFADevice # 
ToHeaders CreateVirtualMFADevice # 
type Rep CreateVirtualMFADevice # 
type Rep CreateVirtualMFADevice = D1 (MetaData "CreateVirtualMFADevice" "Network.AWS.IAM.CreateVirtualMFADevice" "amazonka-iam-1.4.5-1ijrgQyRuWgA7Tx0390Dx2" 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 # 

Request Lenses

cvmdPath :: Lens' CreateVirtualMFADevice (Maybe Text) #

The path for the virtual MFA device. For more information about paths, see IAM Identifiers in the IAM User Guide . This parameter is optional. If it is not included, it defaults to a slash (). The <http:wikipedia.orgwikiregex regex pattern> for this parameter is a string of characters consisting of either a forward slash () by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (u0021) thru the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters.

cvmdVirtualMFADeviceName :: Lens' CreateVirtualMFADevice Text #

The name of the virtual MFA device. Use with path to uniquely identify a virtual 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: =,.@-

Destructuring the Response

createVirtualMFADeviceResponse #

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 #

Contains the response to a successful CreateVirtualMFADevice request.

See: createVirtualMFADeviceResponse smart constructor.

Instances

Eq CreateVirtualMFADeviceResponse # 
Data CreateVirtualMFADeviceResponse # 

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 # 
Show CreateVirtualMFADeviceResponse # 
Generic CreateVirtualMFADeviceResponse # 
NFData CreateVirtualMFADeviceResponse # 
type Rep CreateVirtualMFADeviceResponse # 
type Rep CreateVirtualMFADeviceResponse = D1 (MetaData "CreateVirtualMFADeviceResponse" "Network.AWS.IAM.CreateVirtualMFADevice" "amazonka-iam-1.4.5-1ijrgQyRuWgA7Tx0390Dx2" False) (C1 (MetaCons "CreateVirtualMFADeviceResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cvmdrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)) (S1 (MetaSel (Just Symbol "_cvmdrsVirtualMFADevice") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 VirtualMFADevice))))

Response Lenses

cvmdrsVirtualMFADevice :: Lens' CreateVirtualMFADeviceResponse VirtualMFADevice #

A structure containing details about the new virtual MFA device.