List Mfa Devices
| iam_list_mfa_devices | R Documentation |
Lists the MFA devices for an IAM user¶
Description¶
Lists the MFA devices for an IAM user. If the request includes a IAM user name, then this operation lists all the MFA devices associated with the specified user. If you do not specify a user name, IAM determines the user name implicitly based on the Amazon Web Services access key ID signing the request for this operation.
You can paginate the results using the MaxItems and Marker
parameters.
Usage¶
Arguments¶
UserNameThe name of the user whose MFA devices you want to list.
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: _+=,.@-
MarkerUse this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the
Markerelement in the response that you received to indicate where the next call should start.MaxItemsUse this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the
IsTruncatedresponse element istrue.If you do not include this parameter, the number of items defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the
IsTruncatedresponse element returnstrue, andMarkercontains a value to include in the subsequent call that tells the service where to continue from.
Value¶
A list with the following syntax:
list(
MFADevices = list(
list(
UserName = "string",
SerialNumber = "string",
EnableDate = as.POSIXct(
"2015-01-01"
)
)
),
IsTruncated = TRUE|FALSE,
Marker = "string"
)