AWS Security ChangesHomeSearch

AWS code-library documentation change

Service: code-library · 2026-06-16 · Documentation low

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

Summary

Added SAP ABAP code example for DeleteCertificate operation and updated link text

Security assessment

The change adds SAP ABAP implementation for certificate deactivation/deletion but doesn't address any security vulnerability or weakness. Certificate lifecycle management is a standard operational procedure.

Diff

diff --git a/code-library/latest/ug/iot_example_iot_DeleteCertificate_section.md b/code-library/latest/ug/iot_example_iot_DeleteCertificate_section.md
index 52632d7e0..bf0d3639a 100644
--- a//code-library/latest/ug/iot_example_iot_DeleteCertificate_section.md
+++ b//code-library/latest/ug/iot_example_iot_DeleteCertificate_section.md
@@ -17 +17 @@ Action examples are code excerpts from larger programs and must be run in contex
-  * [Getting started with IoT Core](./iot_example_iot_GettingStarted_063_section.html)
+  * [Getting started with internet of things messaging](./iot_example_iot_GettingStarted_063_section.html)
@@ -284,0 +285,36 @@ 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/iot#code-examples). 
+    
+    
+        CONSTANTS cv_pfl TYPE /aws1/rt_profile_id VALUE 'ZCODE_DEMO'.
+        DATA(lo_session) = /aws1/cl_rt_session_aws=>create( cv_pfl ).
+        DATA(lo_iot) = /aws1/cl_iot_factory=>create( lo_session ).
+        TRY.
+            " Certificates must be deactivated before they can be deleted.
+            lo_iot->updatecertificate(
+              iv_certificateid = iv_certificate_id
+              iv_newstatus     = 'INACTIVE' ).
+            lo_iot->deletecertificate( iv_certificateid = iv_certificate_id ).
+            MESSAGE |Certificate deleted: { iv_certificate_id }| TYPE 'I'.
+          CATCH /aws1/cx_iotresourcenotfoundex INTO DATA(lo_ex).
+            MESSAGE |Certificate '{ iv_certificate_id }' not found.| TYPE 'I'.
+            RAISE EXCEPTION lo_ex.
+          CATCH /aws1/cx_rt_service_generic INTO DATA(lo_svc_ex).
+            MESSAGE lo_svc_ex->get_text( ) TYPE 'I'.
+            RAISE EXCEPTION lo_svc_ex.
+        ENDTRY.
+    
+    
+
+  * For API details, see [DeleteCertificate](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. 
+
+
+
+