AWS code-library documentation change
Summary
Added SAP ABAP code example for CreateFHIRDatastore API with error handling
Security assessment
The change adds HealthLake datastore creation documentation without security-specific content or evidence of addressing vulnerabilities.
Diff
diff --git a/code-library/latest/ug/healthlake_example_healthlake_CreateFHIRDatastore_section.md b/code-library/latest/ug/healthlake_example_healthlake_CreateFHIRDatastore_section.md index 46228a53a..43fe74eda 100644 --- a//code-library/latest/ug/healthlake_example_healthlake_CreateFHIRDatastore_section.md +++ b//code-library/latest/ug/healthlake_example_healthlake_CreateFHIRDatastore_section.md @@ -188,0 +189,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_. + + + +