AWS Security ChangesHomeSearch

AWS IAM documentation change

Service: IAM · 2026-01-25 · Documentation low

File: IAM/latest/UserGuide/iam_example_iam_CreatePolicyVersion_section.md

Summary

Added SAP ABAP SDK code example for CreatePolicyVersion action with error handling for malformed documents and policy limits

Security assessment

The change demonstrates policy versioning in SAP ABAP. While policy management is security-related, this is a routine language integration update. The malformed document error is a standard validation, not a new security feature.

Diff

diff --git a/IAM/latest/UserGuide/iam_example_iam_CreatePolicyVersion_section.md b/IAM/latest/UserGuide/iam_example_iam_CreatePolicyVersion_section.md
index 2111106ae..d58e8c0f9 100644
--- a//IAM/latest/UserGuide/iam_example_iam_CreatePolicyVersion_section.md
+++ b//IAM/latest/UserGuide/iam_example_iam_CreatePolicyVersion_section.md
@@ -148,0 +149,32 @@ 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->createpolicyversion(
+              iv_policyarn = iv_policy_arn
+              iv_policydocument = iv_policy_document
+              iv_setasdefault = iv_set_as_default ).
+            MESSAGE 'Policy version created successfully.' TYPE 'I'.
+          CATCH /aws1/cx_iamnosuchentityex.
+            MESSAGE 'Policy does not exist.' TYPE 'E'.
+          CATCH /aws1/cx_iammalformedplydocex.
+            MESSAGE 'Policy document is malformed.' TYPE 'E'.
+          CATCH /aws1/cx_iamlimitexceededex.
+            MESSAGE 'Policy version limit exceeded.' TYPE 'E'.
+        ENDTRY.
+    
+    
+
+  * For API details, see [CreatePolicyVersion](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. 
+
+
+
+