AWS code-library documentation change
Summary
Added SAP ABAP code example for RevokeGrant operation
Security assessment
Demonstrates revocation of cryptographic access grants which improves security posture, but no indication this addresses a specific security incident. Routine documentation of access control feature.
Diff
diff --git a/code-library/latest/ug/kms_example_kms_RevokeGrant_section.md b/code-library/latest/ug/kms_example_kms_RevokeGrant_section.md index 196c922d3..d8f70d507 100644 --- a//code-library/latest/ug/kms_example_kms_RevokeGrant_section.md +++ b//code-library/latest/ug/kms_example_kms_RevokeGrant_section.md @@ -185,0 +186,34 @@ 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_grant_id = '1a2b3c4d5e6f7g8h9i0j1k2l3m4n5o6p' + lo_kms->revokegrant( + iv_keyid = iv_key_id + iv_grantid = iv_grant_id + ). + MESSAGE 'Grant revoked successfully.' TYPE 'I'. + CATCH /aws1/cx_kmsnotfoundexception. + MESSAGE 'Grant or key not found.' TYPE 'E'. + CATCH /aws1/cx_kmsinvalidgrantidex. + MESSAGE 'Invalid grant ID.' TYPE 'E'. + CATCH /aws1/cx_kmskmsinternalex. + MESSAGE 'An internal error occurred.' TYPE 'E'. + ENDTRY. + + + + * For API details, see [RevokeGrant](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. + + + +