AWS code-library documentation change
Summary
Added SAP ABAP SDK code example for CreateKey operation with error handling
Security assessment
The change adds documentation for cryptographic key creation but doesn't address any known security vulnerability. It demonstrates standard error handling without security-specific improvements.
Diff
diff --git a/code-library/latest/ug/kms_example_kms_CreateKey_section.md b/code-library/latest/ug/kms_example_kms_CreateKey_section.md index c567b0923..4aafc5512 100644 --- a//code-library/latest/ug/kms_example_kms_CreateKey_section.md +++ b//code-library/latest/ug/kms_example_kms_CreateKey_section.md @@ -670,0 +671,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/kms#code-examples). + + + TRY. + " iv_description = 'Created by the AWS SDK for SAP ABAP' + oo_result = lo_kms->createkey( iv_description = iv_description ). + MESSAGE 'KMS key created successfully.' TYPE 'I'. + CATCH /aws1/cx_kmskmsinternalex. + MESSAGE 'An internal error occurred.' TYPE 'E'. + CATCH /aws1/cx_kmslimitexceededex. + MESSAGE 'Limit exceeded for KMS resources.' TYPE 'E'. + ENDTRY. + + + + * For API details, see [CreateKey](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. + + + +