AWS code-library documentation change
Summary
Added SAP ABAP code example for ScheduleKeyDeletion operation
Security assessment
Documents key lifecycle management which is security-relevant, but no evidence of fixing a vulnerability. Key rotation/deletion is standard security practice.
Diff
diff --git a/code-library/latest/ug/kms_example_kms_ScheduleKeyDeletion_section.md b/code-library/latest/ug/kms_example_kms_ScheduleKeyDeletion_section.md index e1cef8d53..2e0f42571 100644 --- a//code-library/latest/ug/kms_example_kms_ScheduleKeyDeletion_section.md +++ b//code-library/latest/ug/kms_example_kms_ScheduleKeyDeletion_section.md @@ -191,0 +192,32 @@ 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_key_id = 'arn:aws:kms:us-east-1:123456789012:key/1234abcd-12ab-34cd-56ef-1234567890ab' + " iv_pending_window_days = 7 + oo_result = lo_kms->schedulekeydeletion( + iv_keyid = iv_key_id + iv_pendingwindowindays = iv_pending_window_days + ). + MESSAGE 'Key scheduled for deletion.' TYPE 'I'. + CATCH /aws1/cx_kmsnotfoundexception. + MESSAGE 'Key not found.' TYPE 'E'. + CATCH /aws1/cx_kmskmsinternalex. + MESSAGE 'An internal error occurred.' TYPE 'E'. + ENDTRY. + + + + * For API details, see [ScheduleKeyDeletion](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. + + + +