AWS Security ChangesHomeSearch

AWS code-library documentation change

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

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

Summary

Added SAP ABAP SDK code example for AddTagsToCertificate API with error handling

Security assessment

The change adds a routine SDK implementation example without addressing any security vulnerabilities or weaknesses. The error handling covers standard operational cases (invalid ARN, resource not found) but doesn't indicate security fixes.

Diff

diff --git a/code-library/latest/ug/acm_example_acm_AddTagsToCertificate_section.md b/code-library/latest/ug/acm_example_acm_AddTagsToCertificate_section.md
index 492ee5ee9..ce0d0f894 100644
--- a//code-library/latest/ug/acm_example_acm_AddTagsToCertificate_section.md
+++ b//code-library/latest/ug/acm_example_acm_AddTagsToCertificate_section.md
@@ -210,0 +211,35 @@ 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/acm#code-examples). 
+    
+    
+        TRY.
+            " iv_certificate_arn = 'arn:aws:acm:region:123456789012:certificate/certificate-id'
+            lo_acm->addtagstocertificate(
+              iv_certificatearn = iv_certificate_arn
+              it_tags = it_tags
+            ).
+            MESSAGE 'Tags added to certificate successfully.' TYPE 'I'.
+          CATCH /aws1/cx_acminvalidarnex.
+            MESSAGE 'The certificate ARN is not valid.' TYPE 'I'.
+          CATCH /aws1/cx_acmresourcenotfoundex.
+            MESSAGE 'Certificate not found.' TYPE 'I'.
+          CATCH /aws1/cx_acminvalidtagex.
+            MESSAGE 'Invalid tag provided.' TYPE 'I'.
+          CATCH /aws1/cx_acmtoomanytagsex.
+            MESSAGE 'Too many tags for certificate.' TYPE 'I'.
+        ENDTRY.
+    
+    
+
+  * For API details, see [AddTagsToCertificate](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. 
+
+
+
+