github.com/minio/console@v1.4.1/web-app/tests/policies/conditionsPolicy3.json (about)

     1  {
     2    "Version": "2012-10-17",
     3    "Statement": [
     4      {
     5        "Sid": "AllowUserToSeeBucketListInTheConsole",
     6        "Action": ["s3:ListAllMyBuckets", "s3:GetBucketLocation"],
     7        "Effect": "Allow",
     8        "Resource": ["arn:aws:s3:::*"]
     9      },
    10      {
    11        "Sid": "AllowRootAndHomeListingOfCompanyBucket",
    12        "Action": ["s3:ListBucket"],
    13        "Effect": "Allow",
    14        "Resource": ["arn:aws:s3:::my-company"],
    15        "Condition": {
    16          "StringEquals": {
    17            "s3:prefix": ["", "home/", "home/User"],
    18            "s3:delimiter": ["/"]
    19          }
    20        }
    21      },
    22      {
    23        "Sid": "AllowListingOfUserFolder",
    24        "Action": ["s3:ListBucket"],
    25        "Effect": "Allow",
    26        "Resource": ["arn:aws:s3:::my-company"],
    27        "Condition": { "StringLike": { "s3:prefix": ["home/User/*"] } }
    28      },
    29      {
    30        "Sid": "AllowAllS3ActionsInUserFolder",
    31        "Effect": "Allow",
    32        "Action": ["s3:*"],
    33        "Resource": ["arn:aws:s3:::my-company/home/User/*"]
    34      }
    35    ]
    36  }