Skip to main content

bucket_policy

Gets an individual bucket_policy resource

Overview

Namebucket_policy
TypeResource
Descriptionbucket_policy
Idawscc.s3outposts.bucket_policy

Fields

NameDatatypeDescription
bucketstringThe Amazon Resource Name (ARN) of the specified bucket.
policy_documentobjectA policy document containing permissions to add to the specified bucket.
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

SELECT
region,
bucket,
policy_document
FROM awscc.s3outposts.bucket_policy
WHERE data__Identifier = '<Bucket>';

Permissions

To operate on the bucket_policy resource, the following permissions are required:

Read

s3-outposts:GetBucketPolicy

Update

s3-outposts:PutBucketPolicy,
s3-outposts:GetBucketPolicy

Delete

s3-outposts:DeleteBucketPolicy,
s3-outposts:GetBucketPolicy