AWS code-library documentation change
Summary
Added PowerShell V5 example for updating role trust policies
Security assessment
Shows management of role trust relationships (security control) but no specific vulnerability addressed
Diff
diff --git a/code-library/latest/ug/iam_example_iam_UpdateAssumeRolePolicy_section.md b/code-library/latest/ug/iam_example_iam_UpdateAssumeRolePolicy_section.md index 09391ee00..8ecac116d 100644 --- a//code-library/latest/ug/iam_example_iam_UpdateAssumeRolePolicy_section.md +++ b//code-library/latest/ug/iam_example_iam_UpdateAssumeRolePolicy_section.md @@ -56,0 +57,14 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This example updates the IAM role named`ClientRole` with a new trust policy, the contents of which come from the file `ClientRolePolicy.json`. Note that you must use the `-Raw` switch parameter to successfully process the contents of the JSON file.** + + + Update-IAMAssumeRolePolicy -RoleName ClientRole -PolicyDocument (Get-Content -raw ClientRolePolicy.json) + + + * For API details, see [UpdateAssumeRolePolicy](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +