AWS code-library documentation change
Summary
Added PowerShell V5 example for ListAttachedGroupPolicies command with sample output and API reference
Security assessment
The change demonstrates policy listing functionality but does not contain security-related content or address vulnerabilities.
Diff
diff --git a/code-library/latest/ug/iam_example_iam_ListAttachedGroupPolicies_section.md b/code-library/latest/ug/iam_example_iam_ListAttachedGroupPolicies_section.md index a3a398c24..0f1563634 100644 --- a//code-library/latest/ug/iam_example_iam_ListAttachedGroupPolicies_section.md +++ b//code-library/latest/ug/iam_example_iam_ListAttachedGroupPolicies_section.md @@ -74,0 +75,22 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This command returns the names and ARNs of the managed policies that are attached to the IAM group named`Admins` in the AWS account. To see the list of inline policies embedded in the group, use the `Get-IAMGroupPolicyList` command.** + + + Get-IAMAttachedGroupPolicyList -GroupName "Admins" + + +**Output:** + + + PolicyArn PolicyName + --------- ---------- + arn:aws:iam::aws:policy/SecurityAudit SecurityAudit + arn:aws:iam::aws:policy/AdministratorAccess AdministratorAccess + + * For API details, see [ListAttachedGroupPolicies](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +