{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "ReadOrderObjects",
      "Effect": "Allow",
      "Action": "s3:GetObject",
      "Resource": "arn:aws:s3:::example-orders-prod/orders/*"
    },
    {
      "Sid": "ListOnlyOrdersPrefix",
      "Effect": "Allow",
      "Action": "s3:ListBucket",
      "Resource": "arn:aws:s3:::example-orders-prod",
      "Condition": {
        "StringLike": {
          "s3:prefix": ["orders/", "orders/*"]
        }
      }
    }
  ]
}
