You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::S3::Types::CORSConfiguration
- Inherits:
-
Struct
- Object
- Struct
- Aws::S3::Types::CORSConfiguration
- Defined in:
- (unknown)
Overview
Note:
When passing CORSConfiguration as input to an Aws::Client method, you can use a vanilla Hash:
{
cors_rules: [ # required
{
allowed_headers: ["AllowedHeader"],
allowed_methods: ["AllowedMethod"], # required
allowed_origins: ["AllowedOrigin"], # required
expose_headers: ["ExposeHeader"],
max_age_seconds: 1,
},
],
}
Describes the cross-origin access configuration for objects in an Amazon S3 bucket. For more information, see Enabling Cross-Origin Resource Sharing in the Amazon Simple Storage Service Developer Guide.
Returned by:
Instance Attribute Summary collapse
-
#cors_rules ⇒ Array<Types::CORSRule>
A set of origins and methods (cross-origin access that you want to allow).
Instance Attribute Details
#cors_rules ⇒ Array<Types::CORSRule>
A set of origins and methods (cross-origin access that you want to allow). You can add up to 100 rules to the configuration.