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

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