Creates a new virtual MFA device for the AWS account. After creating the
virtual MFA, use enable_mfa_device
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.
The number and size of IAM resources in an AWS account are limited. For more information, 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 AWS access keys or your passwords. After you provision your virtual device, you should ensure that the information is destroyed following secure procedures.
iam_create_virtual_mfa_device(Path, VirtualMFADeviceName)
A list with the following syntax:
list(
VirtualMFADevice = list(
SerialNumber = "string",
Base32StringSeed = raw,
QRCodePNG = raw,
User = list(
Path = "string",
UserName = "string",
UserId = "string",
Arn = "string",
CreateDate = as.POSIXct(
"2015-01-01"
),
PasswordLastUsed = as.POSIXct(
"2015-01-01"
),
PermissionsBoundary = list(
PermissionsBoundaryType = "PermissionsBoundaryPolicy",
PermissionsBoundaryArn = "string"
),
Tags = list(
list(
Key = "string",
Value = "string"
)
)
),
EnableDate = as.POSIXct(
"2015-01-01"
)
)
)
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 (through its 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.
[required] The name of the virtual MFA device. Use with path to uniquely identify a virtual MFA device.
This parameter allows (through 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: _+=,.@-
svc$create_virtual_mfa_device(
Path = "string",
VirtualMFADeviceName = "string"
)