AWS IAM documentation change
Summary
Added PowerShell V5 example for ListPolicyVersions command
Security assessment
The change documents policy version tracking, which is important for security audits. No specific vulnerability is addressed.
Diff
diff --git a/IAM/latest/UserGuide/iam_example_iam_ListPolicyVersions_section.md b/IAM/latest/UserGuide/iam_example_iam_ListPolicyVersions_section.md index db1b38aaf..03f92e862 100644 --- a//IAM/latest/UserGuide/iam_example_iam_ListPolicyVersions_section.md +++ b//IAM/latest/UserGuide/iam_example_iam_ListPolicyVersions_section.md @@ -83,0 +84,22 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This example returns the list of available versions of the policy whose ARN is`arn:aws:iam::123456789012:policy/MyManagedPolicy`. To get the policy document for a specific version, use the `Get-IAMPolicyVersion` command and specify the `VersionId` of the one you want.** + + + Get-IAMPolicyVersionList -PolicyArn arn:aws:iam::123456789012:policy/MyManagedPolicy + + +**Output:** + + + CreateDate Document IsDefaultVersion VersionId + ---------- -------- ---------------- --------- + 2/12/2015 9:39:53 AM True v2 + 2/12/2015 9:39:09 AM False v1 + + * For API details, see [ListPolicyVersions](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +