AWS Security ChangesHomeSearch

AWS AmazonS3 documentation change

Service: AmazonS3 · 2025-08-22 · Documentation low

File: AmazonS3/latest/userguide/batch-ops-object-lock-retention.md

Summary

Replaced Java SDK code example with a link to API Reference documentation for S3 Object Lock retention Batch Operations

Security assessment

The change removes a specific Java code example and replaces it with a general reference link. While Object Lock retention is a security feature, this change is purely documentation restructuring and does not introduce or modify security-related content. No evidence of addressing a vulnerability or weakness.

Diff

diff --git a/AmazonS3/latest/userguide/batch-ops-object-lock-retention.md b/AmazonS3/latest/userguide/batch-ops-object-lock-retention.md
index 0fe8dc6c6..0ea33596e 100644
--- a//AmazonS3/latest/userguide/batch-ops-object-lock-retention.md
+++ b//AmazonS3/latest/userguide/batch-ops-object-lock-retention.md
@@ -37,31 +37 @@ The following AWS CLI example shows how to use Batch Operations to apply S3 Obje
-The following AWS SDK for Java example shows how to use Batch Operations to apply S3 Object Lock retention across multiple objects.
-    
-    
-    public void allowPutObjectRetention() {
-        final String roleName = "batch_operations-object-lock";
-    
-        final String retentionPermissions = "{" +
-                "    \"Version\": \"2012-10-17\"," +
-                "    \"Statement\": [" +
-                "        {" +
-                "            \"Effect\": \"Allow\"," +
-                "            \"Action\": [" +
-                "                \"s3:PutObjectRetention\"" +
-                "            ]," +
-                "            \"Resource\": [" +
-                "                \"arn:aws:s3:::amzn-s3-demo-manifest-bucket*\"" +
-                "            ]" +
-                "        }" +
-                "    ]" +
-                "}";
-    
-        final AmazonIdentityManagement iam =
-                AmazonIdentityManagementClientBuilder.defaultClient();
-    
-        final PutRolePolicyRequest putRolePolicyRequest = new PutRolePolicyRequest()
-                .withPolicyDocument(retentionPermissions)
-                .withPolicyName("retention-permissions")
-                .withRoleName(roleName);
-    
-        final PutRolePolicyResult putRolePolicyResult = iam.putRolePolicy(putRolePolicyRequest);
-    }
+For examples of how to use Batch Operations to apply S3 Object Lock retention across multiple objects with the AWS SDK for Java, see [Use CreateJob with an AWS SDK or CLI](https://docs.aws.amazon.com/AmazonS3/latest/API/s3-control_example_s3-control_CreateJob_section.html) in the _Amazon S3 API Reference_.