Chapter 4. S3 using AWS SDK – Java (Part 2)

In the previous chapter, you learned the basic operations for buckets, folders, and objects using the Amazon SDK Java. Now we will discuss some more operations other than add, update, delete, and get. In this chapter, we will cover the following topics:

  • Copying objects from one bucket to another using different methods
  • Managing the lifecycle of a bucket
  • Cross-origin resource sharing

Let's see how to can manage Amazon S3 using Amazon SDK—Java.

Copying objects

Amazon S3 SDK provides a copy object functionality that allows you to copy Amazon S3 objects from one bucket to another. For this, you have to define the source bucket name, source object key, destination bucket name, and the destination object key. The ...

Get Amazon S3 Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.