Set bucket policy

PUT https://{{serviceName}}.{{region}}.amazonaws.com?policy

PutBucketPolicy - Applies an Amazon S3 bucket policy to an Amazon S3 bucket. If you are using an identity other than the root user of the AWS account that owns the bucket, the calling identity must have the PutBucketPolicy permissions on the specified bucket and belong to the bucket owner's account in order to use this operation.

Request Params

KeyDatatypeRequiredDescription
policynull

Request Body

{"Version"=>"2012-10-17", "Statement"=>[{"Effect"=>"Allow", "Principal"=>"*", "Action"=>"s3:GetObject", "Resource"=>"arn:aws:s3:::{{bucketName}}/*"}]}