AWS code-library documentation change
Summary
Added PowerShell V5 example for listing MFA devices with emphasis on virtual device identification
Security assessment
The change documents MFA device management which is a security feature, but does not address a specific vulnerability. It helps users identify virtual MFA devices through serial number patterns.
Diff
diff --git a/code-library/latest/ug/iam_example_iam_ListMfaDevices_section.md b/code-library/latest/ug/iam_example_iam_ListMfaDevices_section.md index af1a2375f..ed216a4ba 100644 --- a//code-library/latest/ug/iam_example_iam_ListMfaDevices_section.md +++ b//code-library/latest/ug/iam_example_iam_ListMfaDevices_section.md @@ -84,0 +85,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)_. + + + +