You are on page 1of 1

Object Versioning

Use versioning to keep multiple versions of an object in one bucket. For example, you could
store my-image.jpg (version 111111) and my-image.jpg (version 222222) in a single bucket.
Versioning protects you from the consequences of unintended overwrites and deletions.
You can also use versioning to archive objects so you have access to previous versions.

When you DELETE an object, all versions remain in the bucket and Amazon S3 inserts a delete
marker
The delete marker becomes the current version of the object.
By default, GET requests retrieve the most recently stored version.
Performing a simple GET Object request when the current version is a delete marker returns
a 404 Not Found error
You can, however, GET a noncurrent version of an object by specifying its version ID.
You can permanently delete an object by specifying the version you want to delete.
Only the owner of an Amazon S3 bucket can permanently delete a version.

Object Lifecycle Management


A lifecycle configuration is a set of rules that define actions that Amazon S3 applies to a group
of objects. There are two types of actions:

Transition actions—Define when objects transition to another storage class.


Expiration actions—Define when objects expire. Amazon S3 deletes expired objects on your
behalf.

Operations on Objects
Uploading objects—You can upload objects of up to 5 GB in size in a single operation. For
objects greater than 5 GB you must use the multipart upload API.

Copying objects— creates a copy of an object that is already stored in Amazon S3.

Upload objects in a single operation—With a single PUT operation, you can upload objects
up to 5 GB in size.
You can use the AWS SDK to upload objects. The SDK provides wrapper libraries for you to
upload data easily. However, if your application requires it, you can use the REST API directly in
your application.

Upload objects in parts—Using the multipart upload API, you can upload large objects, up to 5
TB.

 Delete a single object—Amazon S3 provides the DELETE API that you can use to
delete one object in a single HTTP request.
 Delete multiple objects—Amazon S3 also provides the Multi-Object Delete API that
you can use to delete up to 1000 objects in a single HTTP request.

You might also like