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 my-image.jpg
through the
access point prod
owned by account ID 123456789012
in
Region us-west-2
, and saves the downloaded file as
download.jpg
.
Upload an object through an access point alias
The following example uploads the object my-image.jpg
through the
access point alias my-access-point-hrzrlukc5m36ft7okagglf3gmwluquse1b-s3alias
owned by account ID 123456789012
in
Region us-west-2
.
Delete an object through an access point
The following example deletes the object my-image.jpg
through the
access point prod
owned by account ID 123456789012
in
Region us-west-2
.
List objects through an access point alias
The following example lists objects through the access point alias my-access-point-hrzrlukc5m36ft7okagglf3gmwluquse1b-s3alias
owned by account ID 123456789012
in Region
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
my-image.jpg
through the access point prod
owned by
account ID 123456789012
in Region us-west-2
.
Grant access permissions through an access point using an ACL
The following example applies an ACL to an existing object
my-image.jpg
through the access point prod
owned by
account ID 123456789012
in Region us-west-2
.