AWS Security ChangesHomeSearch

AWS code-library documentation change

Service: code-library · 2026-01-25 · Documentation low

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

Summary

Added SAP ABAP code example for ListPolicies API

Security assessment

New code example without security context. Policy listing is standard functionality without vulnerability references.

Diff

diff --git a/code-library/latest/ug/iam_example_iam_ListPolicies_section.md b/code-library/latest/ug/iam_example_iam_ListPolicies_section.md
index e9d481515..d4671336e 100644
--- a//code-library/latest/ug/iam_example_iam_ListPolicies_section.md
+++ b//code-library/latest/ug/iam_example_iam_ListPolicies_section.md
@@ -686,0 +687,25 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
+SAP ABAP
+    
+
+**SDK for SAP ABAP**
+    
+
+###### Note
+
+There's more on GitHub. Find the complete example and learn how to set up and run in the [AWS Code Examples Repository](https://github.com/awsdocs/aws-doc-sdk-examples/tree/main/sap-abap/services/iam#code-examples). 
+    
+    
+        TRY.
+            oo_result = lo_iam->listpolicies( iv_scope = iv_scope ).
+            MESSAGE 'Retrieved policy list.' TYPE 'I'.
+          CATCH /aws1/cx_iamservicefailureex.
+            MESSAGE 'Service failure when listing policies.' TYPE 'E'.
+        ENDTRY.
+    
+    
+
+  * For API details, see [ListPolicies](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. 
+
+
+
+