amazonka-iam-1.6.1: 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.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 parameter 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. In addition, it can contain any ASCII character from the ! (u0021) through 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 # 
Instance details

Defined in Network.AWS.IAM.CreateVirtualMFADevice

Data CreateVirtualMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.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 Source # 
Instance details

Defined in Network.AWS.IAM.CreateVirtualMFADevice

Show CreateVirtualMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.CreateVirtualMFADevice

Generic CreateVirtualMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.CreateVirtualMFADevice

Associated Types

type Rep CreateVirtualMFADevice :: Type -> Type #

Hashable CreateVirtualMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.CreateVirtualMFADevice

AWSRequest CreateVirtualMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.CreateVirtualMFADevice

Associated Types

type Rs CreateVirtualMFADevice :: Type #

ToHeaders CreateVirtualMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.CreateVirtualMFADevice

ToPath CreateVirtualMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.CreateVirtualMFADevice

ToQuery CreateVirtualMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.CreateVirtualMFADevice

NFData CreateVirtualMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.CreateVirtualMFADevice

Methods

rnf :: CreateVirtualMFADevice -> () #

type Rep CreateVirtualMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.CreateVirtualMFADevice

type Rep CreateVirtualMFADevice = D1 (MetaData "CreateVirtualMFADevice" "Network.AWS.IAM.CreateVirtualMFADevice" "amazonka-iam-1.6.1-BDjAp2BAcQu3GSS4Bsr6zu" False) (C1 (MetaCons "CreateVirtualMFADevice'" PrefixI True) (S1 (MetaSel (Just "_cvmdPath") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cvmdVirtualMFADeviceName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs CreateVirtualMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.CreateVirtualMFADevice

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 parameter 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. In addition, it can contain any ASCII character from the ! (u0021) through 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 # 
Instance details

Defined in Network.AWS.IAM.CreateVirtualMFADevice

Data CreateVirtualMFADeviceResponse Source # 
Instance details

Defined in Network.AWS.IAM.CreateVirtualMFADevice

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 # 
Instance details

Defined in Network.AWS.IAM.CreateVirtualMFADevice

Generic CreateVirtualMFADeviceResponse Source # 
Instance details

Defined in Network.AWS.IAM.CreateVirtualMFADevice

Associated Types

type Rep CreateVirtualMFADeviceResponse :: Type -> Type #

NFData CreateVirtualMFADeviceResponse Source # 
Instance details

Defined in Network.AWS.IAM.CreateVirtualMFADevice

type Rep CreateVirtualMFADeviceResponse Source # 
Instance details

Defined in Network.AWS.IAM.CreateVirtualMFADevice

type Rep CreateVirtualMFADeviceResponse = D1 (MetaData "CreateVirtualMFADeviceResponse" "Network.AWS.IAM.CreateVirtualMFADevice" "amazonka-iam-1.6.1-BDjAp2BAcQu3GSS4Bsr6zu" False) (C1 (MetaCons "CreateVirtualMFADeviceResponse'" PrefixI True) (S1 (MetaSel (Just "_cvmdrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: S1 (MetaSel (Just "_cvmdrsVirtualMFADevice") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 VirtualMFADevice)))

Response Lenses

cvmdrsVirtualMFADevice :: Lens' CreateVirtualMFADeviceResponse VirtualMFADevice Source #

A structure containing details about the new virtual MFA device.