AWS Security ChangesHomeSearch

AWS kms documentation change

Service: kms · 2026-01-25 · Documentation low

File: kms/latest/developerguide/example_kms_GenerateDataKey_section.md

Summary

Added SAP ABAP code example for GenerateDataKey API operation

Security assessment

Added example for generating encryption keys without addressing specific vulnerabilities. Enhances security documentation by demonstrating cryptographic key generation.

Diff

diff --git a/kms/latest/developerguide/example_kms_GenerateDataKey_section.md b/kms/latest/developerguide/example_kms_GenerateDataKey_section.md
index 25f9b8dd2..67db40206 100644
--- a//kms/latest/developerguide/example_kms_GenerateDataKey_section.md
+++ b//kms/latest/developerguide/example_kms_GenerateDataKey_section.md
@@ -166,0 +167,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_keyspec = 'AES_256'
+            oo_result = lo_kms->generatedatakey(
+              iv_keyid = iv_key_id
+              iv_keyspec = 'AES_256'
+            ).
+            MESSAGE 'Data key generated successfully.' TYPE 'I'.
+          CATCH /aws1/cx_kmsdisabledexception.
+            MESSAGE 'The key is disabled.' TYPE 'E'.
+          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 [GenerateDataKey](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_.