Skip to main content

bucket_policy

Gets an individual bucket_policy resource

Overview

Namebucket_policy
TypeResource
Descriptionbucket_policy
Idawscc.s3express.bucket_policy

Fields

NameDatatypeDescription
bucketstringThe name of the S3 directory bucket to which the policy applies.
policy_documentobjectA policy document containing permissions to add to the specified bucket. In IAM, you must provide policy documents in JSON format. However, in CloudFormation you can provide the policy in JSON or YAML format because CloudFormation converts YAML to JSON before submitting it to IAM.
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

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

Permissions

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

Read

s3express:GetBucketPolicy

Update

s3express:GetBucketPolicy,
s3express:PutBucketPolicy

Delete

s3express:GetBucketPolicy,
s3express:DeleteBucketPolicy