AWS IAM documentation change
Summary
Added PowerShell V5 example for Get-IAMPolicy command
Security assessment
Demonstrates policy metadata retrieval without security analysis or permission guidance
Diff
diff --git a/IAM/latest/UserGuide/iam_example_iam_GetPolicy_section.md b/IAM/latest/UserGuide/iam_example_iam_GetPolicy_section.md index 7d7d50ae5..d91cc384c 100644 --- a//IAM/latest/UserGuide/iam_example_iam_GetPolicy_section.md +++ b//IAM/latest/UserGuide/iam_example_iam_GetPolicy_section.md @@ -343,0 +344,28 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This example returns details about the managed policy whose ARN is`arn:aws:iam::123456789012:policy/MySamplePolicy`.** + + + Get-IAMPolicy -PolicyArn arn:aws:iam::123456789012:policy/MySamplePolicy + + +**Output:** + + + Arn : arn:aws:iam::aws:policy/MySamplePolicy + AttachmentCount : 0 + CreateDate : 2/6/2015 10:40:08 AM + DefaultVersionId : v1 + Description : + IsAttachable : True + Path : / + PolicyId : Z27SI6FQMGNQ2EXAMPLE1 + PolicyName : MySamplePolicy + UpdateDate : 2/6/2015 10:40:08 AM + + * For API details, see [GetPolicy](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +