Class: Aws::S3::Types::CORSRule
- Inherits:
-
Struct
- Object
- Struct
- Aws::S3::Types::CORSRule
- Includes:
- Aws::Structure
- Defined in:
- lib/aws-sdk-s3/types.rb
Overview
When making an API call, you may pass CORSRule data as a hash:
{
allowed_headers: ["AllowedHeader"],
allowed_methods: ["AllowedMethod"], # required
allowed_origins: ["AllowedOrigin"], # required
expose_headers: ["ExposeHeader"],
max_age_seconds: 1,
}
Instance Attribute Summary collapse
-
#allowed_headers ⇒ Array<String>
Specifies which headers are allowed in a pre-flight OPTIONS request.
-
#allowed_methods ⇒ Array<String>
Identifies HTTP methods that the domain/origin specified in the rule is allowed to execute.
-
#allowed_origins ⇒ Array<String>
One or more origins you want customers to be able to access the bucket from.
-
#expose_headers ⇒ Array<String>
One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object).
-
#max_age_seconds ⇒ Integer
The time in seconds that your browser is to cache the preflight response for the specified resource.
Instance Attribute Details
#allowed_headers ⇒ Array<String>
Specifies which headers are allowed in a pre-flight OPTIONS request.
531 532 533 534 535 536 537 538 |
# File 'lib/aws-sdk-s3/types.rb', line 531 class CORSRule < Struct.new( :allowed_headers, :allowed_methods, :allowed_origins, :expose_headers, :max_age_seconds) include Aws::Structure end |
#allowed_methods ⇒ Array<String>
Identifies HTTP methods that the domain/origin specified in the rule is allowed to execute.
531 532 533 534 535 536 537 538 |
# File 'lib/aws-sdk-s3/types.rb', line 531 class CORSRule < Struct.new( :allowed_headers, :allowed_methods, :allowed_origins, :expose_headers, :max_age_seconds) include Aws::Structure end |
#allowed_origins ⇒ Array<String>
One or more origins you want customers to be able to access the bucket from.
531 532 533 534 535 536 537 538 |
# File 'lib/aws-sdk-s3/types.rb', line 531 class CORSRule < Struct.new( :allowed_headers, :allowed_methods, :allowed_origins, :expose_headers, :max_age_seconds) include Aws::Structure end |
#expose_headers ⇒ Array<String>
One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object).
531 532 533 534 535 536 537 538 |
# File 'lib/aws-sdk-s3/types.rb', line 531 class CORSRule < Struct.new( :allowed_headers, :allowed_methods, :allowed_origins, :expose_headers, :max_age_seconds) include Aws::Structure end |
#max_age_seconds ⇒ Integer
The time in seconds that your browser is to cache the preflight response for the specified resource.
531 532 533 534 535 536 537 538 |
# File 'lib/aws-sdk-s3/types.rb', line 531 class CORSRule < Struct.new( :allowed_headers, :allowed_methods, :allowed_origins, :expose_headers, :max_age_seconds) include Aws::Structure end |