AWS code-library documentation change
Summary
Added SAP ABAP SDK code example for DeleteCertificate API with error handling
Security assessment
This adds a standard code example for certificate deletion. The 'resource in use' error handling relates to operational constraints, not security vulnerabilities. No evidence of security incident remediation.
Diff
diff --git a/code-library/latest/ug/acm_example_acm_DeleteCertificate_section.md b/code-library/latest/ug/acm_example_acm_DeleteCertificate_section.md index 777436a77..098a3657f 100644 --- a//code-library/latest/ug/acm_example_acm_DeleteCertificate_section.md +++ b//code-library/latest/ug/acm_example_acm_DeleteCertificate_section.md @@ -223,0 +224,30 @@ 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->deletecertificate( iv_certificatearn = iv_certificate_arn ). + MESSAGE 'Certificate deleted 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_acmresourceinuseex. + MESSAGE 'Certificate is in use and cannot be deleted.' TYPE 'I'. + 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_. + + + +