aws.s3-bucket-policy resource¶
Description¶
BucketPolicy manages the resource policy attached to an S3 bucket. The bucket name is the policy's identity; S3 holds one policy per bucket, so the bucket cannot change without replacing the policy, while the policy document is reconciled in place. The document is sent to S3 verbatim: unobin compares inputs as written, so the policy never needs canonicalizing to avoid a phantom diff against the form S3 echoes back.
Source: internal/service/s3/bucket_policy_rsrc.go:22
Example usage:
imports: {
aws: 'github.com/cloudboss/unobin-library-aws'
}
resources: {
example: aws.s3-bucket-policy {
# Set input fields here.
}
}
Inputs¶
bucket
string
policy
string
Input Constraints¶
This kind declares no extra input constraints.
Outputs¶
This kind has no outputs.