Using access points with compatible Amazon S3 operations
The following examples demonstrate how to use access points with compatible operations in Amazon S3.
Topics
- Access point compatibility with AWS services
- Access point compatibility with S3 operations
- Request an object through an access point
- Upload an object through an access point alias
- Delete an object through an access point
- List objects through an access point alias
- Add a tag set to an object through an access point
- Grant access permissions through an access point using an ACL
Access point compatibility with AWS services
Amazon S3 access point aliases allow applications that require an S3 bucket name to easily use an access point. You can use S3 access point aliases where you use S3 bucket names to access data in S3. For more information, see Access point alias use cases and limitations.
Access point compatibility with S3 operations
You can use access points to access a bucket using the following subset of Amazon S3 APIs. All the operations listed below can accept either access point ARNs or access point aliases:
S3 operations
-
CopyObject
(same-Region copies only) -
UploadPartCopy
(same-Region copies only)
Request an object through an access point
The following example requests the object
through the access point
my-image.jpg
owned by account ID
prod
in Region
123456789012
, and saves the downloaded
file as us-west-2
.download.jpg
Upload an object through an access point alias
The following example uploads the object
through the access point alias
my-image.jpg
owned by account ID my-access-point-hrzrlukc5m36ft7okagglf3gmwluquse1b
-s3alias
in Region
123456789012
.us-west-2
Delete an object through an access point
The following example deletes the object
through the access point
my-image.jpg
owned by account ID
prod
in Region
123456789012
.us-west-2
List objects through an access point alias
The following example lists objects through the access point alias
owned by account ID my-access-point-hrzrlukc5m36ft7okagglf3gmwluquse1b
-s3alias
in Region
123456789012
.us-west-2
Add a tag set to an object through an access point
The following example adds a tag set to the existing object
through the access point
my-image.jpg
owned by account ID
prod
in Region
123456789012
.us-west-2
Grant access permissions through an access point using an ACL
The following example applies an ACL to an existing object
through the access point
my-image.jpg
owned by account ID
prod
in Region
123456789012
.us-west-2