AWS healthlake documentation change
Summary
Added SAP ABAP SDK code example for creating FHIR datastores, including error handling for validation, internal server, and throttling exceptions.
Security assessment
The change adds routine SDK implementation examples without addressing security vulnerabilities or security features. Error handling covers general operational issues (validation, throttling) not security-specific scenarios.
Diff
diff --git a/healthlake/latest/devguide/managing-data-stores-create.md b/healthlake/latest/devguide/managing-data-stores-create.md index 4d2cbb188..26be562ae 100644 --- a//healthlake/latest/devguide/managing-data-stores-create.md +++ b//healthlake/latest/devguide/managing-data-stores-create.md @@ -196,0 +197,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_. + + + +