AWS code-library documentation change
Summary
Added PowerShell V5 example for setting policy versions
Security assessment
Shows policy version management which impacts security posture, but no evidence of addressing a security flaw.
Diff
diff --git a/code-library/latest/ug/iam_example_iam_SetDefaultPolicyVersion_section.md b/code-library/latest/ug/iam_example_iam_SetDefaultPolicyVersion_section.md index 557d8c487..06d591355 100644 --- a//code-library/latest/ug/iam_example_iam_SetDefaultPolicyVersion_section.md +++ b//code-library/latest/ug/iam_example_iam_SetDefaultPolicyVersion_section.md @@ -59,0 +60,14 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This example sets the`v2` version of the policy whose ARN is `arn:aws:iam::123456789012:policy/MyPolicy` as the default active version.** + + + Set-IAMDefaultPolicyVersion -PolicyArn arn:aws:iam::123456789012:policy/MyPolicy -VersionId v2 + + + * For API details, see [SetDefaultPolicyVersion](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +