AWS code-library documentation change
Summary
Added SAP ABAP code example for CreateUser API with error handling
Security assessment
Routine SDK documentation expansion. User limit checks are standard service constraints, not security fixes. No mention of security vulnerabilities or security enhancements.
Diff
diff --git a/code-library/latest/ug/iam_example_iam_CreateUser_section.md b/code-library/latest/ug/iam_example_iam_CreateUser_section.md index a068a54c4..3fef5bee6 100644 --- a//code-library/latest/ug/iam_example_iam_CreateUser_section.md +++ b//code-library/latest/ug/iam_example_iam_CreateUser_section.md @@ -769,0 +770,30 @@ 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->createuser( + iv_username = iv_user_name ). + MESSAGE 'User created successfully.' TYPE 'I'. + CATCH /aws1/cx_iamentityalrdyexex. + MESSAGE 'User already exists.' TYPE 'E'. + CATCH /aws1/cx_iamlimitexceededex. + MESSAGE 'Limit exceeded for IAM users.' TYPE 'E'. + CATCH /aws1/cx_iamnosuchentityex. + MESSAGE 'Entity does not exist.' TYPE 'E'. + ENDTRY. + + + + * For API details, see [CreateUser](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. + + + +