AWS healthlake documentation change
Summary
Added SAP ABAP SDK code example for ListFHIRExportJobs API, including error handling for validation and resource-not-found exceptions
Security assessment
The change adds a routine code example without addressing security vulnerabilities or weaknesses. It demonstrates standard API usage with error handling but contains no security-specific content or mitigations.
Diff
diff --git a/healthlake/latest/devguide/example_healthlake_ListFHIRExportJobs_section.md b/healthlake/latest/devguide/example_healthlake_ListFHIRExportJobs_section.md index 4ead35538..a5a51f8b2 100644 --- a//healthlake/latest/devguide/example_healthlake_ListFHIRExportJobs_section.md +++ b//healthlake/latest/devguide/example_healthlake_ListFHIRExportJobs_section.md @@ -136,0 +137,43 @@ 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_datastore_id = 'a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6' + IF iv_submitted_after IS NOT INITIAL. + oo_result = lo_hll->listfhirexportjobs( + iv_datastoreid = iv_datastore_id + iv_submittedafter = iv_submitted_after + ). + ELSE. + oo_result = lo_hll->listfhirexportjobs( + iv_datastoreid = iv_datastore_id + ). + ENDIF. + DATA(lt_export_jobs) = oo_result->get_exportjobpropertieslist( ). + DATA(lv_job_count) = lines( lt_export_jobs ). + MESSAGE |Found { lv_job_count } export job(s).| 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_hllresourcenotfoundex INTO DATA(lo_notfound_ex). + lv_error = |Resource not found: { lo_notfound_ex->av_err_code }-{ lo_notfound_ex->av_err_msg }|. + MESSAGE lv_error TYPE 'I'. + RAISE EXCEPTION lo_notfound_ex. + ENDTRY. + + + + * For API details, see [ListFHIRExportJobs](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. + + + +