AWS IAM documentation change
Summary
Added PowerShell V5 example for ListRolePolicies command
Security assessment
The change demonstrates inline policy enumeration for roles, relevant to security auditing. No evidence of addressing a specific vulnerability.
Diff
diff --git a/IAM/latest/UserGuide/iam_example_iam_ListRolePolicies_section.md b/IAM/latest/UserGuide/iam_example_iam_ListRolePolicies_section.md index 16bdc8af5..74ef9d96a 100644 --- a//IAM/latest/UserGuide/iam_example_iam_ListRolePolicies_section.md +++ b//IAM/latest/UserGuide/iam_example_iam_ListRolePolicies_section.md @@ -244,0 +245,19 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This example returns the list of names of inline policies that are embedded in the IAM role`lamda_exec_role`. To see the details of an inline policy, use the command `Get-IAMRolePolicy`.** + + + Get-IAMRolePolicyList -RoleName lambda_exec_role + + +**Output:** + + + oneClick_lambda_exec_role_policy + + * For API details, see [ListRolePolicies](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +