AWS healthimaging documentation change
Summary
Added SAP ABAP SDK code example for StartDICOMImportJob API with error handling
Security assessment
Addition of code sample showing role-based access (IAM roles) but doesn't document new security features or address vulnerabilities. Standard error handling for AccessDenied doesn't indicate security remediation.
Diff
diff --git a/healthimaging/latest/devguide/start-dicom-import-job.md b/healthimaging/latest/devguide/start-dicom-import-job.md index 88c5b38de..06705ec1f 100644 --- a//healthimaging/latest/devguide/start-dicom-import-job.md +++ b//healthimaging/latest/devguide/start-dicom-import-job.md @@ -316,0 +317,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). +