AWS Security ChangesHomeSearch

AWS code-library documentation change

Service: code-library · 2026-01-25 · Documentation low

File: code-library/latest/ug/sap-abap_1_s3_code_examples.md

Summary

Added multiple S3 code examples for SAP ABAP SDK including DeleteBucketCors, DeleteBucketLifecycle, DeleteBucketPolicy, DeleteObjects, GetBucketAcl, GetBucketCors, GetBucketLifecycleConfiguration, GetBucketPolicy, GetObjectAcl, GetObjectLegalHold, GetObjectLockConfiguration, HeadBucket, ListObjectVersions, PutBucketAcl, PutBucketCors, PutBucketLifecycleConfiguration, PutBucketPolicy, PutBucketVersioning, PutObjectAcl, PutObjectLegalHold, PutObjectLockConfiguration, and PutObjectRetention operations.

Security assessment

The changes add documentation for security-related S3 features including ACL management, bucket policies, CORS configuration, object legal holds, retention policies, and versioning. However, there is no evidence of these changes addressing a specific security vulnerability or incident. The examples demonstrate proper usage of security controls but don't reference any patched vulnerabilities.

Diff

diff --git a/code-library/latest/ug/sap-abap_1_s3_code_examples.md b/code-library/latest/ug/sap-abap_1_s3_code_examples.md
index c7f8b21a6..8efaf7b6a 100644
--- a//code-library/latest/ug/sap-abap_1_s3_code_examples.md
+++ b//code-library/latest/ug/sap-abap_1_s3_code_examples.md
@@ -282,0 +283,75 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
+The following code example shows how to use `DeleteBucketCors`.
+
+**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.
+            lo_s3->deletebucketcors(
+              iv_bucket = iv_bucket_name ).
+            MESSAGE 'Bucket CORS configuration deleted.' TYPE 'I'.
+          CATCH /aws1/cx_s3_nosuchbucket.
+            MESSAGE 'Bucket does not exist.' TYPE 'E'.
+        ENDTRY.
+    
+    
+
+  * For API details, see [DeleteBucketCors](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. 
+
+
+
+
+The following code example shows how to use `DeleteBucketLifecycle`.
+
+**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.
+            lo_s3->deletebucketlifecycle(
+              iv_bucket = iv_bucket_name ).
+            MESSAGE 'Bucket lifecycle configuration deleted.' TYPE 'I'.
+          CATCH /aws1/cx_s3_nosuchbucket.
+            MESSAGE 'Bucket does not exist.' TYPE 'E'.
+        ENDTRY.
+    
+    
+
+  * For API details, see [DeleteBucketLifecycle](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. 
+
+
+
+
+The following code example shows how to use `DeleteBucketPolicy`.
+
+**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.
+            lo_s3->deletebucketpolicy(
+              iv_bucket = iv_bucket_name ).
+            MESSAGE 'Bucket policy deleted.' TYPE 'I'.
+          CATCH /aws1/cx_s3_nosuchbucket.
+            MESSAGE 'Bucket does not exist.' TYPE 'E'.
+        ENDTRY.
+    
+    
+
+  * For API details, see [DeleteBucketPolicy](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. 
+
+
+
+
@@ -308,0 +384,127 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
+The following code example shows how to use `DeleteObjects`.
+
+**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->deleteobjects(         " oo_result is returned for testing purposes. "
+              iv_bucket = iv_bucket_name
+              io_delete = NEW /aws1/cl_s3_delete( it_objects = it_object_keys ) ).
+            MESSAGE 'Objects deleted from S3 bucket.' TYPE 'I'.
+          CATCH /aws1/cx_s3_nosuchbucket.
+            MESSAGE 'Bucket does not exist.' TYPE 'E'.
+        ENDTRY.
+    
+    
+
+  * For API details, see [DeleteObjects](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. 
+
+
+
+
+The following code example shows how to use `GetBucketAcl`.
+
+**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->getbucketacl(         " oo_result is returned for testing purposes. "
+              iv_bucket = iv_bucket_name ).
+            MESSAGE 'Retrieved bucket ACL.' TYPE 'I'.
+          CATCH /aws1/cx_s3_nosuchbucket.
+            MESSAGE 'Bucket does not exist.' TYPE 'E'.
+        ENDTRY.
+    
+    
+
+  * For API details, see [GetBucketAcl](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. 
+
+
+
+
+The following code example shows how to use `GetBucketCors`.
+
+**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->getbucketcors(         " oo_result is returned for testing purposes. "
+              iv_bucket = iv_bucket_name ).
+            MESSAGE 'Retrieved bucket CORS configuration.' TYPE 'I'.
+          CATCH /aws1/cx_s3_nosuchbucket.
+            MESSAGE 'Bucket does not exist.' TYPE 'E'.
+        ENDTRY.
+    
+    
+
+  * For API details, see [GetBucketCors](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. 
+
+
+
+
+The following code example shows how to use `GetBucketLifecycleConfiguration`.
+
+**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->getbucketlifecycleconf(         " oo_result is returned for testing purposes. "
+              iv_bucket = iv_bucket_name ).
+            MESSAGE 'Retrieved bucket lifecycle configuration.' TYPE 'I'.
+          CATCH /aws1/cx_s3_nosuchbucket.
+            MESSAGE 'Bucket does not exist.' TYPE 'E'.
+        ENDTRY.
+    
+    
+
+  * For API details, see [GetBucketLifecycleConfiguration](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. 
+
+
+
+
+The following code example shows how to use `GetBucketPolicy`.
+
+**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->getbucketpolicy(         " oo_result is returned for testing purposes. "
+              iv_bucket = iv_bucket_name ).
+            DATA(lv_policy) = oo_result->get_policy( ).
+            MESSAGE 'Retrieved bucket policy.' TYPE 'I'.
+          CATCH /aws1/cx_s3_nosuchbucket.
+            MESSAGE 'Bucket does not exist.' TYPE 'E'.
+        ENDTRY.