{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowListManagedDirectoryBuckets",
      "Effect": "Allow",
      "Action": [
        "s3:ListBucket"
      ],
      "Resource": [
        "arn:aws:s3:::www.example.com"
      ]
    },
    {
      "Sid": "AllowReadWriteManagedDirectoryObjects",
      "Effect": "Allow",
      "Action": [
        "s3:GetObject",
        "s3:PutObject",
        "s3:DeleteObject"
      ],
      "Resource": [
        "arn:aws:s3:::www.example.com/*"
      ]
    },
    {
      "Sid": "AllowCloudFrontInvalidationForManagedDistributions",
      "Effect": "Allow",
      "Action": [
        "cloudfront:CreateInvalidation"
      ],
      "Resource": [
        "arn:aws:cloudfront::123456789012:distribution/EXAMPLE_DISTRIBUTION_ID"
      ]
    }
  ]
}