AWS healthlake documentation change
Summary
Added SAP ABAP SDK code example for CreateFHIRDatastore operation with error handling
Security assessment
The change adds a code example without any security-specific content. It includes generic error handling for validation, throttling, and server errors but doesn't address vulnerabilities or security features.
Diff
diff --git a/healthlake/latest/devguide/example_healthlake_CreateFHIRDatastore_section.md b/healthlake/latest/devguide/example_healthlake_CreateFHIRDatastore_section.md index 757639391..b51cfc8f2 100644 --- a//healthlake/latest/devguide/example_healthlake_CreateFHIRDatastore_section.md +++ b//healthlake/latest/devguide/example_healthlake_CreateFHIRDatastore_section.md @@ -184,0 +185,39 @@ 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_name = 'MyHealthLakeDataStore' + oo_result = lo_hll->createfhirdatastore( + iv_datastorename = iv_datastore_name + iv_datastoretypeversion = 'R4' + ). + MESSAGE 'Data store created successfully.' 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_hllinternalserverex INTO DATA(lo_internal_ex). + lv_error = |Internal server error: { lo_internal_ex->av_err_code }-{ lo_internal_ex->av_err_msg }|. + MESSAGE lv_error TYPE 'I'. + RAISE EXCEPTION lo_internal_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. + ENDTRY. + + + + * For API details, see [CreateFHIRDatastore](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. + + + +