AWS IAM documentation change
Summary
Added SAP ABAP SDK code example for CreateAccessKey action with error handling for non-existent users and access key limits
Security assessment
The change provides SAP ABAP code samples for access key creation. While access keys are security credentials, this is routine documentation expansion without evidence of addressing specific security issues.
Diff
diff --git a/IAM/latest/UserGuide/iam_example_iam_CreateAccessKey_section.md b/IAM/latest/UserGuide/iam_example_iam_CreateAccessKey_section.md index d117cf49b..c042baeb7 100644 --- a//IAM/latest/UserGuide/iam_example_iam_CreateAccessKey_section.md +++ b//IAM/latest/UserGuide/iam_example_iam_CreateAccessKey_section.md @@ -696,0 +697,28 @@ 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->createaccesskey( + iv_username = iv_user_name ). + MESSAGE 'Access key created successfully.' TYPE 'I'. + CATCH /aws1/cx_iamnosuchentityex. + MESSAGE 'User does not exist.' TYPE 'E'. + CATCH /aws1/cx_iamlimitexceededex. + MESSAGE 'Maximum number of access keys reached.' TYPE 'E'. + ENDTRY. + + + + * For API details, see [CreateAccessKey](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. + + + +