AWS IAM documentation change
Summary
Added PowerShell V5 example for ListMfaDevices command with MFA device details
Security assessment
The change documents how to list MFA devices, which is a security feature. However, it does not address a specific security vulnerability but rather enhances documentation of existing security controls.
Diff
diff --git a/IAM/latest/UserGuide/iam_example_iam_ListMfaDevices_section.md b/IAM/latest/UserGuide/iam_example_iam_ListMfaDevices_section.md index b133d7c1e..a028c500b 100644 --- a//IAM/latest/UserGuide/iam_example_iam_ListMfaDevices_section.md +++ b//IAM/latest/UserGuide/iam_example_iam_ListMfaDevices_section.md @@ -78,0 +79,21 @@ PowerShell + + + + +**Tools for PowerShell V5** + + +**Example 1: This example returns details about the MFA device assigned to the IAM user`David`. In this example you can tell that it is a virtual device because the `SerialNumber` is an ARN instead of a physical device's actual serial number.** + + + Get-IAMMFADevice -UserName David + + +**Output:** + + + EnableDate SerialNumber UserName + ---------- ------------ -------- + 4/8/2015 9:41:10 AM arn:aws:iam::123456789012:mfa/David David + + * For API details, see [ListMfaDevices](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_.