AWS Security ChangesHomeSearch

AWS code-library documentation change

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

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

Summary

Added PowerShell V5 example for listing IAM roles

Security assessment

Documents role enumeration which is part of standard security audits, but doesn't address specific vulnerabilities. Improves visibility into privileged access configurations.

Diff

diff --git a/code-library/latest/ug/iam_example_iam_ListRoles_section.md b/code-library/latest/ug/iam_example_iam_ListRoles_section.md
index 42dead14d..10d3733ff 100644
--- a//code-library/latest/ug/iam_example_iam_ListRoles_section.md
+++ b//code-library/latest/ug/iam_example_iam_ListRoles_section.md
@@ -285,0 +286,14 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example retrieves a list of all of the IAM roles in the AWS account.**
+    
+    
+    Get-IAMRoleList
+    
+
+  * For API details, see [ListRoles](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+