AWS code-library documentation change
Summary
Added SAP ABAP code example for StartFHIRImportJob with KMS encryption
Security assessment
Example shows secure import configuration with KMS encryption (iv_kms_key_id) but doesn't fix vulnerabilities. Documents proper security implementation for data encryption at rest.
Diff
diff --git a/code-library/latest/ug/healthlake_example_healthlake_StartFHIRImportJob_section.md b/code-library/latest/ug/healthlake_example_healthlake_StartFHIRImportJob_section.md index c060355f1..792a2eec7 100644 --- a//code-library/latest/ug/healthlake_example_healthlake_StartFHIRImportJob_section.md +++ b//code-library/latest/ug/healthlake_example_healthlake_StartFHIRImportJob_section.md @@ -114,0 +115,52 @@ There's more on GitHub. Find the complete example and learn how to set up and ru +SAP ABAP + + +**SDK for SAP ABAP** + + +###### 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/hll#code-examples). + + + TRY. + " iv_job_name = 'MyImportJob' + " iv_input_s3_uri = 's3://my-bucket/import/data.ndjson' + " iv_job_output_s3_uri = 's3://my-bucket/import/output/' + " iv_kms_key_id = 'arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012' + " iv_data_access_role_arn = 'arn:aws:iam::123456789012:role/HealthLakeImportRole' + oo_result = lo_hll->startfhirimportjob( + iv_jobname = iv_job_name + io_inputdataconfig = NEW /aws1/cl_hllinputdataconfig( iv_s3uri = iv_input_s3_uri ) + io_joboutputdataconfig = NEW /aws1/cl_hlloutputdataconfig( + io_s3configuration = NEW /aws1/cl_hlls3configuration( + iv_s3uri = iv_job_output_s3_uri + iv_kmskeyid = iv_kms_key_id + ) + ) + iv_dataaccessrolearn = iv_data_access_role_arn + iv_datastoreid = iv_datastore_id + ). + DATA(lv_job_id) = oo_result->get_jobid( ). + MESSAGE |Import job started with ID { lv_job_id }.| TYPE 'I'. + CATCH /aws1/cx_hllvalidationex INTO DATA(lo_validation_ex). + DATA(lv_error) = |Validation error: { lo_validation_ex->av_err_code }-{ lo_validation_ex->av_err_msg }|. + MESSAGE lv_error TYPE 'I'. + RAISE EXCEPTION lo_validation_ex. + CATCH /aws1/cx_hllthrottlingex INTO DATA(lo_throttling_ex). + lv_error = |Throttling error: { lo_throttling_ex->av_err_code }-{ lo_throttling_ex->av_err_msg }|. + MESSAGE lv_error TYPE 'I'. + RAISE EXCEPTION lo_throttling_ex. + CATCH /aws1/cx_hllaccessdeniedex INTO DATA(lo_access_ex). + lv_error = |Access denied: { lo_access_ex->av_err_code }-{ lo_access_ex->av_err_msg }|. + MESSAGE lv_error TYPE 'I'. + RAISE EXCEPTION lo_access_ex. + ENDTRY. + + + + * For API details, see [StartFHIRImportJob](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. + + + +