AWS config documentation change
Summary
Added SAP ABAP SDK code example for IAM CreateRole API
Security assessment
Routine code sample addition for IAM role creation. Includes policy validation errors but doesn't address specific security issues or document new security features.
Diff
diff --git a/config/latest/developerguide/gs-cli-prereq.md b/config/latest/developerguide/gs-cli-prereq.md index e52148e25..95307b9bd 100644 --- a//config/latest/developerguide/gs-cli-prereq.md +++ b//config/latest/developerguide/gs-cli-prereq.md @@ -2733,0 +2734,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_. + + + +