AWS code-library documentation change
Summary
Added SAP ABAP code example for CreateAccountAlias operation with error handling
Security assessment
Account aliases are non-security features. The change adds a routine code sample without addressing vulnerabilities or security features.
Diff
diff --git a/code-library/latest/ug/iam_example_iam_CreateAccountAlias_section.md b/code-library/latest/ug/iam_example_iam_CreateAccountAlias_section.md index 5a819f17c..e1ef9dbcb 100644 --- a//code-library/latest/ug/iam_example_iam_CreateAccountAlias_section.md +++ b//code-library/latest/ug/iam_example_iam_CreateAccountAlias_section.md @@ -389,0 +390,28 @@ List, create, and delete account aliases. +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. + lo_iam->createaccountalias( + iv_accountalias = iv_account_alias ). + MESSAGE 'Account alias created successfully.' TYPE 'I'. + CATCH /aws1/cx_iamentityalrdyexex. + MESSAGE 'Account alias already exists.' TYPE 'E'. + CATCH /aws1/cx_iamlimitexceededex. + MESSAGE 'Account alias limit exceeded.' TYPE 'E'. + ENDTRY. + + + + * For API details, see [CreateAccountAlias](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. + + + +