Skip to main content
Providers

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.

NameTypeDefaultRequiredDescription
bucketstring—NoThe name of the bucket to apply the policy to
policystring—NoThe bucket policy as a JSON string (IAM policy document)

On this page