AWS healthimaging documentation change
Summary
Added SAP ABAP SDK code example for ListTagsForResource API with error handling
Security assessment
Demonstrates standard resource tagging API usage. Includes AccessDenied exception but no evidence of patching security vulnerabilities or introducing new security features.
Diff
diff --git a/healthimaging/latest/devguide/example_medical-imaging_ListTagsForResource_section.md b/healthimaging/latest/devguide/example_medical-imaging_ListTagsForResource_section.md index 0248795a5..7ee256d8a 100644 --- a//healthimaging/latest/devguide/example_medical-imaging_ListTagsForResource_section.md +++ b//healthimaging/latest/devguide/example_medical-imaging_ListTagsForResource_section.md @@ -197,0 +198,36 @@ There's more on GitHub. Find the complete example and learn how to set up and ru +SAP ABAP + + +**SDK for SAP ABAP** + + + + TRY. + " iv_resource_arn = 'arn:aws:medical-imaging:us-east-1:123456789012:datastore/12345678901234567890123456789012' + oo_result = lo_mig->listtagsforresource( iv_resourcearn = iv_resource_arn ). + DATA(lt_tags) = oo_result->get_tags( ). + DATA(lv_count) = lines( lt_tags ). + MESSAGE |Found { lv_count } tags for resource.| TYPE 'I'. + CATCH /aws1/cx_migaccessdeniedex. + MESSAGE 'Access denied.' TYPE 'I'. + CATCH /aws1/cx_miginternalserverex. + MESSAGE 'Internal server error.' TYPE 'I'. + CATCH /aws1/cx_migresourcenotfoundex. + MESSAGE 'Resource not found.' TYPE 'I'. + CATCH /aws1/cx_migthrottlingex. + MESSAGE 'Request throttled.' TYPE 'I'. + CATCH /aws1/cx_migvalidationex. + MESSAGE 'Validation error.' TYPE 'I'. + ENDTRY. + + + + * For API details, see [ListTagsForResource](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. + + + + +###### 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/mig#code-examples). +