AWS code-library documentation change
Summary
Added SAP ABAP SDK code example for DeleteUser action with error handling
Security assessment
Documents secure user deletion process in SAP ABAP with proper error handling for attached resources. Routine SDK documentation expansion without security vulnerability context.
Diff
diff --git a/code-library/latest/ug/iam_example_iam_DeleteUser_section.md b/code-library/latest/ug/iam_example_iam_DeleteUser_section.md index e72b753f8..976739808 100644 --- a//code-library/latest/ug/iam_example_iam_DeleteUser_section.md +++ b//code-library/latest/ug/iam_example_iam_DeleteUser_section.md @@ -678,0 +679,27 @@ 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. + lo_iam->deleteuser( iv_username = iv_user_name ). + MESSAGE 'User deleted successfully.' TYPE 'I'. + CATCH /aws1/cx_iamnosuchentityex. + MESSAGE 'User does not exist.' TYPE 'E'. + CATCH /aws1/cx_iamdeleteconflictex. + MESSAGE 'User cannot be deleted due to attached resources.' TYPE 'E'. + ENDTRY. + + + + * For API details, see [DeleteUser](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. + + + +