Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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
- createVirtualMFADevice :: Text -> CreateVirtualMFADevice
- data CreateVirtualMFADevice
- cvmdPath :: Lens' CreateVirtualMFADevice (Maybe Text)
- cvmdVirtualMFADeviceName :: Lens' CreateVirtualMFADevice Text
- createVirtualMFADeviceResponse :: Int -> VirtualMFADevice -> CreateVirtualMFADeviceResponse
- data CreateVirtualMFADeviceResponse
- cvmdrsResponseStatus :: Lens' CreateVirtualMFADeviceResponse Int
- cvmdrsVirtualMFADevice :: Lens' CreateVirtualMFADeviceResponse VirtualMFADevice
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
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:
cvmdrsResponseStatus
- -- | The response status code.cvmdrsVirtualMFADevice
- A structure containing details about the new virtual MFA device.
data CreateVirtualMFADeviceResponse Source #
Contains the response to a successful CreateVirtualMFADevice
request.
See: createVirtualMFADeviceResponse
smart constructor.
Instances
Response Lenses
cvmdrsResponseStatus :: Lens' CreateVirtualMFADeviceResponse Int Source #
- - | The response status code.
cvmdrsVirtualMFADevice :: Lens' CreateVirtualMFADeviceResponse VirtualMFADevice Source #
A structure containing details about the new virtual MFA device.