AWS Security ChangesHomeSearch

AWS code-library documentation change

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

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

Summary

Added SAP ABAP code example for UpdateAlias operation

Security assessment

Documents key alias management which has no direct security impact. No security features or vulnerabilities addressed in the change.

Diff

diff --git a/code-library/latest/ug/kms_example_kms_UpdateAlias_section.md b/code-library/latest/ug/kms_example_kms_UpdateAlias_section.md
index 742bdfc1c..a15b8d0d8 100644
--- a//code-library/latest/ug/kms_example_kms_UpdateAlias_section.md
+++ b//code-library/latest/ug/kms_example_kms_UpdateAlias_section.md
@@ -97,0 +98,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_alias_name = 'alias/my-key-alias'
+            " iv_target_key_id = 'arn:aws:kms:us-east-1:123456789012:key/5678dcba-56cd-78ef-90ab-5678901234cd'
+            lo_kms->updatealias(
+              iv_aliasname = iv_alias_name
+              iv_targetkeyid = iv_target_key_id
+            ).
+            MESSAGE 'Alias updated successfully.' TYPE 'I'.
+          CATCH /aws1/cx_kmsnotfoundexception.
+            MESSAGE 'Alias or key not found.' TYPE 'E'.
+          CATCH /aws1/cx_kmskmsinternalex.
+            MESSAGE 'An internal error occurred.' TYPE 'E'.
+        ENDTRY.
+    
+    
+
+  * For API details, see [UpdateAlias](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. 
+
+
+
+