AWS Security ChangesHomeSearch

AWS code-library documentation change

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

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

Summary

Updated heading and added SAP ABAP code example for ListPolicyVersions API

Security assessment

Heading change expands CLI reference to include SDKs. Added code example shows policy version listing without security implications.

Diff

diff --git a/code-library/latest/ug/iam_example_iam_ListPolicyVersions_section.md b/code-library/latest/ug/iam_example_iam_ListPolicyVersions_section.md
index cda5ae6ac..785688145 100644
--- a//code-library/latest/ug/iam_example_iam_ListPolicyVersions_section.md
+++ b//code-library/latest/ug/iam_example_iam_ListPolicyVersions_section.md
@@ -7 +7 @@ There are more AWS SDK examples available in the [AWS Doc SDK Examples](https://
-# Use `ListPolicyVersions` with a CLI
+# Use `ListPolicyVersions` with an AWS SDK or CLI
@@ -107,0 +108,28 @@ PowerShell
+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->listpolicyversions(
+              iv_policyarn = iv_policy_arn ).
+            MESSAGE 'Retrieved policy versions list.' TYPE 'I'.
+          CATCH /aws1/cx_iamnosuchentityex.
+            MESSAGE 'Policy does not exist.' TYPE 'E'.
+          CATCH /aws1/cx_iamservicefailureex.
+            MESSAGE 'Service failure when listing policy versions.' TYPE 'E'.
+        ENDTRY.
+    
+    
+
+  * For API details, see [ListPolicyVersions](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. 
+
+
+
+