AWS Security ChangesHomeSearch

AWS AmazonS3 documentation change

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

File: AmazonS3/latest/userguide/copy-object.md

Summary

Replaced detailed Java SDK code example with a link to API reference documentation for copying objects

Security assessment

The change removes inline code implementation details and points to external API reference documentation. There is no evidence of security vulnerability fixes or security feature additions. This appears to be a routine documentation restructuring.

Diff

diff --git a/AmazonS3/latest/userguide/copy-object.md b/AmazonS3/latest/userguide/copy-object.md
index b8ac96a66..5778fb740 100644
--- a//AmazonS3/latest/userguide/copy-object.md
+++ b//AmazonS3/latest/userguide/copy-object.md
@@ -129,43 +129 @@ Java
-The following example copies an object in Amazon S3 using the AWS SDK for Java. For instructions on creating and testing a working sample, see [Getting Started](https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/getting-started.html) in the AWS SDK for Java Developer Guide.
-    
-    
-    import com.amazonaws.AmazonServiceException;
-    import com.amazonaws.SdkClientException;
-    import com.amazonaws.auth.profile.ProfileCredentialsProvider;
-    import com.amazonaws.regions.Regions;
-    import com.amazonaws.services.s3.AmazonS3;
-    import com.amazonaws.services.s3.AmazonS3ClientBuilder;
-    import com.amazonaws.services.s3.model.CopyObjectRequest;
-    
-    import java.io.IOException;
-    
-    public class CopyObjectSingleOperation {
-    
-        public static void main(String[] args) throws IOException {
-            Regions clientRegion = Regions.DEFAULT_REGION;
-            String bucketName = "*** Bucket name ***";
-            String sourceKey = "*** Source object key *** ";
-            String destinationKey = "*** Destination object key ***";
-    
-            try {
-                AmazonS3 s3Client = AmazonS3ClientBuilder.standard()
-                        .withCredentials(new ProfileCredentialsProvider())
-                        .withRegion(clientRegion)
-                        .build();
-    
-                // Copy the object into a new object in the same bucket.
-                CopyObjectRequest copyObjRequest = new CopyObjectRequest(bucketName, sourceKey, bucketName, destinationKey);
-                s3Client.copyObject(copyObjRequest);
-            } catch (AmazonServiceException e) {
-                // The call was transmitted successfully, but Amazon S3 couldn't process
-                // it, so it returned an error response.
-                e.printStackTrace();
-            } catch (SdkClientException e) {
-                // Amazon S3 couldn't be contacted for a response, or the client
-                // couldn't parse the response from Amazon S3.
-                e.printStackTrace();
-            }
-        }
-    }
-    
-    
+For examples of how to copy objects with the AWS SDK for Java, see [Copy an object from one bucket to another](https://docs.aws.amazon.com/AmazonS3/latest/API/s3_example_s3_CopyObject_section.html) in the _Amazon S3 API Reference_.