AWS healthimaging documentation change
Summary
Added SAP ABAP SDK code example for UpdateImageSetMetadata API with error handling and version control
Security assessment
The change adds a code sample for metadata updates including versioning. The 'force' parameter could relate to update conflicts but doesn't specifically address security vulnerabilities or document new security features.
Diff
diff --git a/healthimaging/latest/devguide/example_medical-imaging_UpdateImageSetMetadata_section.md b/healthimaging/latest/devguide/example_medical-imaging_UpdateImageSetMetadata_section.md index d613a6cf2..efff02d03 100644 --- a//healthimaging/latest/devguide/example_medical-imaging_UpdateImageSetMetadata_section.md +++ b//healthimaging/latest/devguide/example_medical-imaging_UpdateImageSetMetadata_section.md @@ -719,0 +720,47 @@ There's more on GitHub. Find the complete example and learn how to set up and ru +SAP ABAP + + +**SDK for SAP ABAP** + + + + TRY. + " iv_datastore_id = '1234567890123456789012345678901234567890' + " iv_image_set_id = '1234567890123456789012345678901234567890' + " iv_latest_version_id = '1' + " iv_force = abap_false + oo_result = lo_mig->updateimagesetmetadata( + iv_datastoreid = iv_datastore_id + iv_imagesetid = iv_image_set_id + iv_latestversionid = iv_latest_version_id + io_updateimagesetmetupdates = io_metadata_updates + iv_force = iv_force ). + DATA(lv_new_version) = oo_result->get_latestversionid( ). + MESSAGE |Image set metadata updated to version: { lv_new_version }.| TYPE 'I'. + CATCH /aws1/cx_migaccessdeniedex. + MESSAGE 'Access denied.' TYPE 'I'. + CATCH /aws1/cx_migconflictexception. + MESSAGE 'Conflict error.' TYPE 'I'. + CATCH /aws1/cx_miginternalserverex. + MESSAGE 'Internal server error.' TYPE 'I'. + CATCH /aws1/cx_migresourcenotfoundex. + MESSAGE 'Image set not found.' TYPE 'I'. + CATCH /aws1/cx_migservicequotaexcdex. + MESSAGE 'Service quota exceeded.' TYPE 'I'. + CATCH /aws1/cx_migthrottlingex. + MESSAGE 'Request throttled.' TYPE 'I'. + CATCH /aws1/cx_migvalidationex. + MESSAGE 'Validation error.' TYPE 'I'. + ENDTRY. + + + + * For API details, see [UpdateImageSetMetadata](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. + + + + +###### 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/mig#code-examples). +