S3BucketPolicy
A resource of the AWS provider, version 0.3.0, in its Storage group. Import it with:
import S3BucketPolicy from "aws/storage"Example
resource S3BucketPolicy example {
bucket = "example-value"
policy = "example-value"
}Properties
Set by your code in the resource block. A required one must be set; any other you leave out takes the value under Default, if it has one.
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
bucket | string | — | No | The name of the bucket to apply the policy to |
policy | string | — | No | The bucket policy as a JSON string (IAM policy document) |