在存储桶策略中对 s3 对象的 get 请求需要自定义标头吗?

Ste*_*3PO 5 amazon-s3 amazon-web-services

是否可能需要一个自定义标题,如

"x-amz-meta-blah:foobar"

作为存储桶策略的一部分,何时对 s3 对象发出 GET 请求?

就像是;

{
  "Version":"2012-10-17",
  "Statement":[
   {
     "Sid":"111",
     "Effect":"Allow",
     "Principal":{
      "AWS":"123456789"
     },
     "Action":"s3:GetObject",
     "Resource":"arn:aws:s3:::bucket01/*"
   },
   {
     "Sid":"112",
     "Effect":"Allow",
     "Principal":{
      "AWS":"123456789"
     },
     "Action":"s3:GetObject",
     "Resource":"arn:aws:s3:::bucket01/*",
     "Condition":{
      "StringEquals":{
        "s3:x-amz-meta-blah":[
         "x-amz-meta-blah:foobar"
        ]
      }
     }
   }
  ]
}
Run Code Online (Sandbox Code Playgroud)

Emr*_*inç 0

根据IAM Policy Simulator,这似乎是可能的:

在此输入图像描述