github.com/minio/console@v1.4.1/web-app/tests/policies/conditionsPolicy2.json (about) 1 { 2 "Version": "2012-10-17", 3 "Statement": [ 4 { 5 "Sid": "read-only", 6 "Effect": "Allow", 7 "Action": ["s3:GetBucketLocation"], 8 "Resource": ["arn:aws:s3:::testcondition"] 9 }, 10 { 11 "Sid": "read", 12 "Effect": "Allow", 13 "Action": ["s3:GetObject"], 14 "Resource": ["arn:aws:s3:::testcondition/firstlevel/*"] 15 }, 16 { 17 "Sid": "statement2", 18 "Effect": "Allow", 19 "Action": ["s3:ListBucket"], 20 "Resource": ["arn:aws:s3:::testcondition"], 21 "Condition": { 22 "StringLike": { 23 "s3:prefix": ["firstlevel/secondlevel/thirdlevel/*"] 24 } 25 } 26 } 27 ] 28 }