AWS Security ChangesHomeSearch

AWS IAM documentation change

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

File: IAM/latest/UserGuide/iam_example_iam_CreatePolicy_section.md

Summary

Added SAP ABAP SDK code example for CreatePolicy action with error handling for existing policies, malformed documents, and policy limits

Security assessment

This adds policy creation examples for SAP ABAP. The documentation of malformed policy errors improves implementation safety but doesn't address a specific vulnerability or introduce new security features.

Diff

diff --git a/IAM/latest/UserGuide/iam_example_iam_CreatePolicy_section.md b/IAM/latest/UserGuide/iam_example_iam_CreatePolicy_section.md
index c5874237b..b37a8de41 100644
--- a//IAM/latest/UserGuide/iam_example_iam_CreatePolicy_section.md
+++ b//IAM/latest/UserGuide/iam_example_iam_CreatePolicy_section.md
@@ -1055,0 +1056,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->createpolicy(
+              iv_policyname = iv_policy_name
+              iv_policydocument = iv_policy_document
+              iv_description = iv_description ).
+            MESSAGE 'Policy created successfully.' TYPE 'I'.
+          CATCH /aws1/cx_iamentityalrdyexex.
+            MESSAGE 'Policy already exists.' TYPE 'E'.
+          CATCH /aws1/cx_iammalformedplydocex.
+            MESSAGE 'Policy document is malformed.' TYPE 'E'.
+          CATCH /aws1/cx_iamlimitexceededex.
+            MESSAGE 'Policy limit exceeded.' TYPE 'E'.
+        ENDTRY.
+    
+    
+
+  * For API details, see [CreatePolicy](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. 
+
+
+
+