AWS code-library documentation change
Summary
Added SAP ABAP SDK code example for StartDICOMImportJob API operation
Security assessment
The change demonstrates normal SAP ABAP usage patterns for medical data import. No security vulnerabilities are addressed, though the example shows proper IAM role usage which is standard security practice.
Diff
diff --git a/code-library/latest/ug/medical-imaging_example_medical-imaging_StartDICOMImportJob_section.md b/code-library/latest/ug/medical-imaging_example_medical-imaging_StartDICOMImportJob_section.md index 0930e476d..78f09f0ef 100644 --- a//code-library/latest/ug/medical-imaging_example_medical-imaging_StartDICOMImportJob_section.md +++ b//code-library/latest/ug/medical-imaging_example_medical-imaging_StartDICOMImportJob_section.md @@ -281,0 +282,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). +