AWS healthlake documentation change
Summary
Added SAP ABAP SDK code example for describing FHIR datastores, including error handling for resource not found and validation exceptions.
Security assessment
Change provides standard API usage documentation without security context. Error handling focuses on resource availability and input validation, not security controls or vulnerabilities.
Diff
diff --git a/healthlake/latest/devguide/managing-data-stores-describe.md b/healthlake/latest/devguide/managing-data-stores-describe.md index 4f2ff1986..61a51ec6e 100644 --- a//healthlake/latest/devguide/managing-data-stores-describe.md +++ b//healthlake/latest/devguide/managing-data-stores-describe.md @@ -109,0 +110,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_id = 'a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6' + oo_result = lo_hll->describefhirdatastore( + iv_datastoreid = iv_datastore_id + ). + DATA(lo_datastore_properties) = oo_result->get_datastoreproperties( ). + IF lo_datastore_properties IS BOUND. + DATA(lv_datastore_name) = lo_datastore_properties->get_datastorename( ). + DATA(lv_datastore_status) = lo_datastore_properties->get_datastorestatus( ). + MESSAGE 'Data store described successfully.' TYPE 'I'. + ENDIF. + CATCH /aws1/cx_hllresourcenotfoundex INTO DATA(lo_notfound_ex). + DATA(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. + CATCH /aws1/cx_hllvalidationex INTO DATA(lo_validation_ex). + 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. + ENDTRY. + + + + * For API details, see [DescribeFHIRDatastore](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. + + + +