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

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

  • 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 (). This paramater allows (per its <http:wikipedia.orgwikiregex regex pattern> ) 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. 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: =,.@-

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 # 
ToQuery CreateVirtualMFADevice Source # 
ToPath CreateVirtualMFADevice Source # 
ToHeaders CreateVirtualMFADevice Source # 
type Rep CreateVirtualMFADevice Source # 
type Rep CreateVirtualMFADevice = D1 (MetaData "CreateVirtualMFADevice" "Network.AWS.IAM.CreateVirtualMFADevice" "amazonka-iam-1.5.0-2w4nVHAOrDgI2P1QVLKd9e" 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 IAM User Guide . This parameter is optional. If it is not included, it defaults to a slash (). This paramater allows (per its <http:wikipedia.orgwikiregex regex pattern> ) 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 Source #

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

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 #

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.5.0-2w4nVHAOrDgI2P1QVLKd9e" 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

cvmdrsVirtualMFADevice :: Lens' CreateVirtualMFADeviceResponse VirtualMFADevice Source #

A structure containing details about the new virtual MFA device.