AWS Security ChangesHomeSearch

AWS code-library documentation change

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

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

Summary

Added SAP ABAP SDK code example for DescribeKey operation with error handling

Security assessment

This change adds key metadata retrieval documentation without security implications. It contains no evidence of addressing vulnerabilities or documenting new security features.

Diff

diff --git a/code-library/latest/ug/kms_example_kms_DescribeKey_section.md b/code-library/latest/ug/kms_example_kms_DescribeKey_section.md
index 9447bb251..e2ff9428f 100644
--- a//code-library/latest/ug/kms_example_kms_DescribeKey_section.md
+++ b//code-library/latest/ug/kms_example_kms_DescribeKey_section.md
@@ -407,0 +408,29 @@ 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'
+            oo_result = lo_kms->describekey( iv_keyid = iv_key_id ).
+            DATA(lo_key) = oo_result->get_keymetadata( ).
+            MESSAGE 'Retrieved key information successfully.' 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 [DescribeKey](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. 
+
+
+
+