Smaws_Client_IAM.CreateVirtualMFADeviceCreates a new virtual MFA device for the Amazon Web Services 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, see Using a virtual MFA device in the IAM User Guide.
For information about the maximum number of MFA devices you can create, see IAM and STS quotas in the IAM User Guide.
The seed information contained in the QR code and the Base32 string should be treated like any other secret access information. In other words, protect the seed information as you would your Amazon Web Services access keys or your passwords. After you provision your virtual device, you should ensure that the information is destroyed following secure procedures.
val error_to_string :
[ Smaws_Lib.Protocols.AwsQuery.error
| `ConcurrentModificationException of Types.concurrent_modification_exception
| `EntityAlreadyExistsException of Types.entity_already_exists_exception
| `InvalidInputException of Types.invalid_input_exception
| `LimitExceededException of Types.limit_exceeded_exception
| `ServiceFailureException of Types.service_failure_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.create_virtual_mfa_device_request ->
(Types.create_virtual_mfa_device_response,
[> Smaws_Lib.Protocols.AwsQuery.error
| `ConcurrentModificationException of
Types.concurrent_modification_exception
| `EntityAlreadyExistsException of Types.entity_already_exists_exception
| `InvalidInputException of Types.invalid_input_exception
| `LimitExceededException of Types.limit_exceeded_exception
| `ServiceFailureException of Types.service_failure_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.create_virtual_mfa_device_request ->
(Types.create_virtual_mfa_device_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsQuery.error
| `ConcurrentModificationException of
Types.concurrent_modification_exception
| `EntityAlreadyExistsException of Types.entity_already_exists_exception
| `InvalidInputException of Types.invalid_input_exception
| `LimitExceededException of Types.limit_exceeded_exception
| `ServiceFailureException of Types.service_failure_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result