Files
object-browser/web-app/tests/policies/conditionsPolicy.json
2023-12-29 11:44:01 -06:00

29 lines
614 B
JSON

{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "read-only",
"Effect": "Allow",
"Action": ["s3:GetBucketLocation"],
"Resource": ["arn:aws:s3:::testcondition"]
},
{
"Sid": "read",
"Effect": "Allow",
"Action": ["s3:GetObject"],
"Resource": ["arn:aws:s3:::testcondition/firstlevel/*"]
},
{
"Sid": "statement2",
"Effect": "Allow",
"Action": ["s3:ListBucket"],
"Resource": ["arn:aws:s3:::testcondition"],
"Condition": {
"StringLike": {
"s3:prefix": ["firstlevel/*"]
}
}
}
]
}