AWS healthimaging documentation change
Summary
Added SAP ABAP SDK code example for StartDICOMImportJob API with error handling
Security assessment
This change adds a standard code sample for data import operations. While it includes role-based access control (via ARN), this is existing functionality documentation, not a new security feature or vulnerability fix.
Diff
diff --git a/healthimaging/latest/devguide/example_medical-imaging_StartDICOMImportJob_section.md b/healthimaging/latest/devguide/example_medical-imaging_StartDICOMImportJob_section.md index ad483fe60..9141ee1fd 100644 --- a//healthimaging/latest/devguide/example_medical-imaging_StartDICOMImportJob_section.md +++ b//healthimaging/latest/devguide/example_medical-imaging_StartDICOMImportJob_section.md @@ -277,0 +278,48 @@ 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_job_name = 'import-job-1' + " iv_datastore_id = '1234567890123456789012345678901234567890' + " iv_role_arn = 'arn:aws:iam::123456789012:role/ImportJobRole' + " iv_input_s3_uri = 's3://my-bucket/input/' + " iv_output_s3_uri = 's3://my-bucket/output/' + oo_result = lo_mig->startdicomimportjob( + iv_jobname = iv_job_name + iv_datastoreid = iv_datastore_id + iv_dataaccessrolearn = iv_role_arn + iv_inputs3uri = iv_input_s3_uri + iv_outputs3uri = iv_output_s3_uri ). + DATA(lv_job_id) = oo_result->get_jobid( ). + MESSAGE |DICOM import job started with ID: { lv_job_id }.| 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_migservicequotaexcdex. + MESSAGE 'Service quota exceeded.' 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 [StartDICOMImportJob](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). +