class Aws::S3::Types::PutBucketCorsRequest
@see docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketCorsRequest AWS API Documentation
@return [String]
(Access Denied)‘ error.
by a different account, the request will fail with an HTTP `403
The account ID of the expected bucket owner. If the bucket is owned
@!attribute [rw] expected_bucket_owner
@return [String]<br>: www.ietf.org/rfc/rfc1864.txt<br><br><br><br>SDKs, this field is calculated automatically.
For requests made using the AWS Command Line Interface (CLI) or AWS
1864.][1]
was not corrupted in transit. For more information, go to [RFC
be used as a message integrity check to verify that the request body
The base64-encoded 128-bit MD5 digest of the data. This header must
@!attribute [rw] content_md5
@return [Types::CORSConfiguration]<br>: docs.aws.amazon.com/AmazonS3/latest/dev/cors.html<br><br><br><br>Resource Sharing] in the *Amazon S3 User Guide*.
Amazon S3 bucket. For more information, see [Enabling Cross-Origin
Describes the cross-origin access configuration for objects in an
@!attribute [rw] cors_configuration
@return [String]
Specifies the bucket impacted by the `cors`configuration.
@!attribute [rw] bucket
}
expected_bucket_owner: “AccountId”,
content_md5: “ContentMD5”,
},
],
},
max_age_seconds: 1,
expose_headers: [“ExposeHeader”],
allowed_origins: [“AllowedOrigin”], # required
allowed_methods: [“AllowedMethod”], # required
allowed_headers: [“AllowedHeader”],
id: “ID”,
{
cors_rules: [ # required
cors_configuration: { # required
bucket: “BucketName”, # required
{
data as a hash:
@note When making an API call, you may pass PutBucketCorsRequest