AWS healthimaging documentation change
Summary
Added SAP ABAP SDK code example for ListDatastores API with error handling
Security assessment
Routine documentation update showing how to call an API. AccessDenied exception is mentioned but no security fixes or vulnerabilities are addressed.
Diff
diff --git a/healthimaging/latest/devguide/example_medical-imaging_ListDatastores_section.md b/healthimaging/latest/devguide/example_medical-imaging_ListDatastores_section.md index 347c9b8d5..41989ea9b 100644 --- a//healthimaging/latest/devguide/example_medical-imaging_ListDatastores_section.md +++ b//healthimaging/latest/devguide/example_medical-imaging_ListDatastores_section.md @@ -277,0 +278,33 @@ There's more on GitHub. Find the complete example and learn how to set up and ru + +SAP ABAP + + +**SDK for SAP ABAP** + + + + TRY. + oo_result = lo_mig->listdatastores( ). + DATA(lt_datastores) = oo_result->get_datastoresummaries( ). + DATA(lv_count) = lines( lt_datastores ). + MESSAGE |Found { lv_count } data stores.| TYPE 'I'. + CATCH /aws1/cx_migaccessdeniedex. + MESSAGE 'Access denied.' TYPE 'I'. + CATCH /aws1/cx_miginternalserverex. + MESSAGE 'Internal server error.' 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 [ListDatastores](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).