AWS Security ChangesHomeSearch

AWS code-library documentation change

Service: code-library · 2026-01-25 · Documentation low

File: code-library/latest/ug/kms_example_kms_RetireGrant_section.md

Summary

Added SAP ABAP code example for RetireGrant operation

Security assessment

Added code example for retiring cryptographic grants which is a security feature, but no evidence of addressing a specific vulnerability. KMS grant management is part of routine security best practices.

Diff

diff --git a/code-library/latest/ug/kms_example_kms_RetireGrant_section.md b/code-library/latest/ug/kms_example_kms_RetireGrant_section.md
index d3471c441..f1503ac3c 100644
--- a//code-library/latest/ug/kms_example_kms_RetireGrant_section.md
+++ b//code-library/latest/ug/kms_example_kms_RetireGrant_section.md
@@ -88,0 +89,30 @@ 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_grant_token = 'AQpAM2RhZ...'
+            lo_kms->retiregrant( iv_granttoken = iv_grant_token ).
+            MESSAGE 'Grant retired successfully.' TYPE 'I'.
+          CATCH /aws1/cx_kmsnotfoundexception.
+            MESSAGE 'Grant not found.' TYPE 'E'.
+          CATCH /aws1/cx_kmsinvgranttokenex.
+            MESSAGE 'Invalid grant token.' TYPE 'E'.
+          CATCH /aws1/cx_kmskmsinternalex.
+            MESSAGE 'An internal error occurred.' TYPE 'E'.
+        ENDTRY.
+    
+    
+
+  * For API details, see [RetireGrant](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. 
+
+
+
+