Creates a bucket policy for an S3 on Outposts bucket that denies the PutBucketLifecycleConfiguration action.

Terraform Template

resource "aws_s3control_bucket_policy" "example" {
  bucket = "aws_s3control_bucket.example.arn"
  policy = jsonencode({
 Id = "testBucketPolicy"
 Statement = [
 {
 Action = "s3-outposts:PutBucketLifecycleConfiguration"
 Effect = "Deny"
 Principal = {
 AWS = "*"
 }
 Resource = aws_s3control_bucket.example.arn
 Sid = "statement1"
 }
 ]
 Version = "2012-10-17"
 })
}