AWS code-library documentation change
Summary
Added SAP ABAP code example for ListTagsForCertificate API
Security assessment
The change adds a language-specific implementation example without addressing security vulnerabilities or introducing security features. Certificate tagging is a resource management feature.
Diff
diff --git a/code-library/latest/ug/acm_example_acm_ListTagsForCertificate_section.md b/code-library/latest/ug/acm_example_acm_ListTagsForCertificate_section.md index 6001b8eb5..54217d73b 100644 --- a//code-library/latest/ug/acm_example_acm_ListTagsForCertificate_section.md +++ b//code-library/latest/ug/acm_example_acm_ListTagsForCertificate_section.md @@ -234,0 +235,31 @@ 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' + DATA(lo_result) = lo_acm->listtagsforcertificate( + iv_certificatearn = iv_certificate_arn + ). + ot_tags = lo_result->get_tags( ). + MESSAGE 'Certificate tags retrieved 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'. + ENDTRY. + + + + * For API details, see [ListTagsForCertificate](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. + + + +