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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.