AWS Security ChangesHomeSearch

AWS IAM documentation change

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

File: IAM/latest/UserGuide/iam_example_iam_CreateRole_section.md

Summary

Added SAP ABAP SDK code example for CreateRole action with error handling for existing roles, malformed documents, and role limits

Security assessment

The change provides role creation examples for SAP ABAP. The malformed document check helps prevent misconfigurations but doesn't address a specific security flaw. No security advisories or vulnerabilities are referenced.

Diff

diff --git a/IAM/latest/UserGuide/iam_example_iam_CreateRole_section.md b/IAM/latest/UserGuide/iam_example_iam_CreateRole_section.md
index fdb37d93a..a11d875dc 100644
--- a//IAM/latest/UserGuide/iam_example_iam_CreateRole_section.md
+++ b//IAM/latest/UserGuide/iam_example_iam_CreateRole_section.md
@@ -823,0 +824,31 @@ 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->createrole(
+              iv_rolename = iv_role_name
+              iv_assumerolepolicydocument = iv_assume_role_policy_document ).
+            MESSAGE 'Role created successfully.' TYPE 'I'.
+          CATCH /aws1/cx_iamentityalrdyexex.
+            MESSAGE 'Role already exists.' TYPE 'E'.
+          CATCH /aws1/cx_iammalformedplydocex.
+            MESSAGE 'Assume role policy document is malformed.' TYPE 'E'.
+          CATCH /aws1/cx_iamlimitexceededex.
+            MESSAGE 'Role limit exceeded.' TYPE 'E'.
+        ENDTRY.
+    
+    
+
+  * For API details, see [CreateRole](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. 
+
+
+
+