AWS code-library documentation change
Summary
Added SAP ABAP code example for ListFHIRDatastores API with validation and throttling error handling
Security assessment
Throttling exception handling is added, but this relates to API rate limiting rather than security vulnerabilities. No evidence of security incident response or security feature documentation.
Diff
diff --git a/code-library/latest/ug/healthlake_example_healthlake_ListFHIRDatastores_section.md b/code-library/latest/ug/healthlake_example_healthlake_ListFHIRDatastores_section.md index 7d8c536a0..72d0d7489 100644 --- a//code-library/latest/ug/healthlake_example_healthlake_ListFHIRDatastores_section.md +++ b//code-library/latest/ug/healthlake_example_healthlake_ListFHIRDatastores_section.md @@ -119,0 +120,33 @@ 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. + oo_result = lo_hll->listfhirdatastores( ). + DATA(lt_datastores) = oo_result->get_datastorepropertieslist( ). + DATA(lv_datastore_count) = lines( lt_datastores ). + MESSAGE |Found { lv_datastore_count } data store(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_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 [ListFHIRDatastores](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. + + + +