AWS healthimaging documentation change
Summary
Added SAP ABAP SDK code example for SearchImageSets API with error handling
Security assessment
The change adds a code example without addressing security vulnerabilities. The error handling for AccessDenied is standard API practice and doesn't indicate a specific security fix.
Diff
diff --git a/healthimaging/latest/devguide/search-image-sets.md b/healthimaging/latest/devguide/search-image-sets.md index ac5f2fd0b..83745ac61 100644 --- a//healthimaging/latest/devguide/search-image-sets.md +++ b//healthimaging/latest/devguide/search-image-sets.md @@ -1040,0 +1041,40 @@ 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_datastore_id = '1234567890123456789012345678901234567890' + oo_result = lo_mig->searchimagesets( + iv_datastoreid = iv_datastore_id + io_searchcriteria = io_search_criteria ). + DATA(lt_imagesets) = oo_result->get_imagesetsmetadatasums( ). + DATA(lv_count) = lines( lt_imagesets ). + MESSAGE |Found { lv_count } image sets.| TYPE 'I'. + CATCH /aws1/cx_migaccessdeniedex. + MESSAGE 'Access denied.' TYPE 'I'. + CATCH /aws1/cx_migconflictexception. + MESSAGE 'Conflict error.' 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 [SearchImageSets](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). +