AWS code-library documentation change
Summary
Added SAP ABAP SDK code example for GetObjectAcl API with error handling
Security assessment
Shows object ACL retrieval but does not address security vulnerabilities or specifically document security controls.
Diff
diff --git a/code-library/latest/ug/s3_example_s3_GetObjectAcl_section.md b/code-library/latest/ug/s3_example_s3_GetObjectAcl_section.md index f6e60544e..fc228d6f0 100644 --- a//code-library/latest/ug/s3_example_s3_GetObjectAcl_section.md +++ b//code-library/latest/ug/s3_example_s3_GetObjectAcl_section.md @@ -294,0 +295,29 @@ 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/s3#code-examples). + + + TRY. + oo_result = lo_s3->getobjectacl( " oo_result is returned for testing purposes. " + iv_bucket = iv_bucket_name + iv_key = iv_object_key ). + MESSAGE 'Retrieved object ACL.' TYPE 'I'. + CATCH /aws1/cx_s3_nosuchbucket. + MESSAGE 'Bucket does not exist.' TYPE 'E'. + CATCH /aws1/cx_s3_nosuchkey. + MESSAGE 'Object key does not exist.' TYPE 'E'. + ENDTRY. + + + + * For API details, see [GetObjectAcl](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. + + + +