Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Managing table bucket policies

Focus mode
Managing table bucket policies - Amazon Simple Storage Service

You can add, delete, update, and view bucket policies for Amazon S3 table buckets by using the Amazon S3 REST API, AWS SDKs, and the AWS Command Line Interface (AWS CLI). For more information, see the following topics.

For more information, see the following topics. For more information about supported AWS Identity and Access Management (IAM) actions and condition keys for Amazon S3 Tables, see Access management for S3 Tables. For example bucket policies for table buckets, see Resource-based policies for S3 Tables.

Adding a table bucket policy

To add a bucket policy to a table bucket, use the following AWS CLI example.

This example shows how to create a table bucket policy by using the AWS CLI. To use the command, replace the user input placeholders with your own information.

aws s3tables put-table-bucket-policy \ --table-bucket-arn arn:aws:s3tables:us-east-1:111122223333:bucket/amzn-s3-demo-bucket1 \ --resource-policy your-policy-JSON

This example shows how to create a table bucket policy by using the AWS CLI. To use the command, replace the user input placeholders with your own information.

aws s3tables put-table-bucket-policy \ --table-bucket-arn arn:aws:s3tables:us-east-1:111122223333:bucket/amzn-s3-demo-bucket1 \ --resource-policy your-policy-JSON

Viewing a table bucket policy

To view the bucket policy that's attached to a table bucket, use the following AWS CLI example.

This example shows how to view the policy that's attached to a table bucket by using the AWS CLI. To use the command, replace the user input placeholders with your own information.

aws s3tables get-table-bucket-policy --table-bucket-arn arn:aws:s3tables:us-east-1:111122223333:bucket/amzn-s3-demo-bucket1

This example shows how to view the policy that's attached to a table bucket by using the AWS CLI. To use the command, replace the user input placeholders with your own information.

aws s3tables get-table-bucket-policy --table-bucket-arn arn:aws:s3tables:us-east-1:111122223333:bucket/amzn-s3-demo-bucket1

Deleting a table bucket policy

To delete a bucket policy that's attached to a table bucket, use the following AWS CLI example.

This example shows how to delete a table bucket policy by using the AWS CLI. To use the command, replace the user input placeholders with your own information.

aws s3tables delete-table-bucket-policy --table-bucket-arn arn:aws:s3tables:us-east-1:111122223333:bucket/amzn-s3-demo-bucket1

This example shows how to delete a table bucket policy by using the AWS CLI. To use the command, replace the user input placeholders with your own information.

aws s3tables delete-table-bucket-policy --table-bucket-arn arn:aws:s3tables:us-east-1:111122223333:bucket/amzn-s3-demo-bucket1
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.