AWS code-library documentation change
Summary
Added SAP ABAP code example for DeleteAccountAlias API with error handling
Security assessment
Routine SDK documentation expansion. Account alias management has security implications, but the change only shows basic usage without referencing security advisories or vulnerability fixes.
Diff
diff --git a/code-library/latest/ug/iam_example_iam_DeleteAccountAlias_section.md b/code-library/latest/ug/iam_example_iam_DeleteAccountAlias_section.md index f1d8c4c9e..06c86fa50 100644 --- a//code-library/latest/ug/iam_example_iam_DeleteAccountAlias_section.md +++ b//code-library/latest/ug/iam_example_iam_DeleteAccountAlias_section.md @@ -384,0 +385,26 @@ 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->deleteaccountalias( + iv_accountalias = iv_account_alias ). + MESSAGE 'Account alias deleted successfully.' TYPE 'I'. + CATCH /aws1/cx_iamnosuchentityex. + MESSAGE 'Account alias does not exist.' TYPE 'E'. + ENDTRY. + + + + * For API details, see [DeleteAccountAlias](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. + + + +