Class: Aws::S3::Types::PutBucketCorsRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::S3::Types::PutBucketCorsRequest
- Includes:
- Aws::Structure
- Defined in:
- lib/aws-sdk-s3/types.rb
Overview
Note:
When making an API call, you may pass PutBucketCorsRequest data as a hash:
{
bucket: "BucketName", # required
cors_configuration: { # required
cors_rules: [ # required
{
allowed_headers: ["AllowedHeader"],
allowed_methods: ["AllowedMethod"], # required
allowed_origins: ["AllowedOrigin"], # required
expose_headers: ["ExposeHeader"],
max_age_seconds: 1,
},
],
},
content_md5: "ContentMD5",
}
Instance Attribute Summary collapse
Instance Attribute Details
#bucket ⇒ String
6640 6641 6642 6643 6644 6645 |
# File 'lib/aws-sdk-s3/types.rb', line 6640 class PutBucketCorsRequest < Struct.new( :bucket, :cors_configuration, :content_md5) include Aws::Structure end |
#content_md5 ⇒ String
6640 6641 6642 6643 6644 6645 |
# File 'lib/aws-sdk-s3/types.rb', line 6640 class PutBucketCorsRequest < Struct.new( :bucket, :cors_configuration, :content_md5) include Aws::Structure end |
#cors_configuration ⇒ Types::CORSConfiguration
6640 6641 6642 6643 6644 6645 |
# File 'lib/aws-sdk-s3/types.rb', line 6640 class PutBucketCorsRequest < Struct.new( :bucket, :cors_configuration, :content_md5) include Aws::Structure end |