AWS Security ChangesHomeSearch

AWS code-library documentation change

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

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

Summary

Added PowerShell example for retrieving resource ID format configuration for an IAM role

Security assessment

The change demonstrates ID format inspection without mentioning security implications of resource identification schemes

Diff

diff --git a/code-library/latest/ug/ec2_example_ec2_DescribeIdentityIdFormat_section.md b/code-library/latest/ug/ec2_example_ec2_DescribeIdentityIdFormat_section.md
index 6568f08d4..ddbf6f521 100644
--- a//code-library/latest/ug/ec2_example_ec2_DescribeIdentityIdFormat_section.md
+++ b//code-library/latest/ug/ec2_example_ec2_DescribeIdentityIdFormat_section.md
@@ -91,0 +92,21 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example returns the ID format for the resouce 'image' for the role given**
+    
+    
+    Get-EC2IdentityIdFormat -PrincipalArn arn:aws:iam::123456789511:role/JDBC -Resource image
+    
+
+**Output:**
+    
+    
+    Deadline             Resource UseLongIds
+    --------             -------- ----------
+    8/2/2018 11:30:00 PM image    True
+
+  * For API details, see [DescribeIdentityIdFormat](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+