AWS Security ChangesHomeSearch

AWS kms documentation change

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

File: kms/latest/developerguide/example_kms_TagResource_section.md

Summary

Added SAP ABAP code example for TagResource API operation

Security assessment

Documents resource tagging which is an organizational feature, not directly security-related. No security implications or vulnerabilities addressed.

Diff

diff --git a/kms/latest/developerguide/example_kms_TagResource_section.md b/kms/latest/developerguide/example_kms_TagResource_section.md
index c960e345e..c566341cf 100644
--- a//kms/latest/developerguide/example_kms_TagResource_section.md
+++ b//kms/latest/developerguide/example_kms_TagResource_section.md
@@ -178,0 +179,42 @@ 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). 
+    
+    
+        DATA lt_tags TYPE /aws1/cl_kmstag=>tt_taglist.
+    
+        TRY.
+            " iv_key_id = 'arn:aws:kms:us-east-1:123456789012:key/1234abcd-12ab-34cd-56ef-1234567890ab'
+            " iv_tag_key = 'Environment'
+            " iv_tag_value = 'Production'
+            APPEND NEW /aws1/cl_kmstag(
+              iv_tagkey = iv_tag_key
+              iv_tagvalue = iv_tag_value
+            ) TO lt_tags.
+    
+            lo_kms->tagresource(
+              iv_keyid = iv_key_id
+              it_tags = lt_tags
+            ).
+            MESSAGE 'Tag added to KMS key successfully.' TYPE 'I'.
+          CATCH /aws1/cx_kmsnotfoundexception.
+            MESSAGE 'Key not found.' TYPE 'E'.
+          CATCH /aws1/cx_kmstagexception.
+            MESSAGE 'Invalid tag format.' TYPE 'E'.
+          CATCH /aws1/cx_kmskmsinternalex.
+            MESSAGE 'An internal error occurred.' TYPE 'E'.
+        ENDTRY.
+    
+    
+
+  * For API details, see [TagResource](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. 
+
+
+
+