AWS Security ChangesHomeSearch

AWS code-library documentation change

Service: code-library · 2025-06-28 · Documentation low

File: code-library/latest/ug/iam_example_iam_GetPolicy_section.md

Summary

Added PowerShell V5 example for retrieving managed policy details

Security assessment

Documents existing policy inspection capabilities without addressing specific vulnerabilities. Enhances visibility into security configurations but doesn't modify security posture.

Diff

diff --git a/code-library/latest/ug/iam_example_iam_GetPolicy_section.md b/code-library/latest/ug/iam_example_iam_GetPolicy_section.md
index 1955db3d0..a98412778 100644
--- a//code-library/latest/ug/iam_example_iam_GetPolicy_section.md
+++ b//code-library/latest/ug/iam_example_iam_GetPolicy_section.md
@@ -345,0 +346,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)_. 
+
+
+
+