bucket_policy
Gets an individual bucket_policy
resource
Overview
Name | bucket_policy |
Type | Resource |
Description | bucket_policy |
Id | awscc.s3express.bucket_policy |
Fields
Name | Datatype | Description |
---|---|---|
bucket | string | The name of the S3 directory bucket to which the policy applies. |
policy_document | object | A 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. |
region | string | AWS 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