Class: Aws::S3::Types::CORSRule

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb

Overview

Specifies a cross-origin access rule for an Amazon S3 bucket.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#allowed_headersArray<String>

Headers that are specified in the Access-Control-Request-Headers header. These headers are allowed in a preflight OPTIONS request. In response to any preflight OPTIONS request, Amazon S3 returns any requested headers that are allowed.

Returns:

  • (Array<String>)


446
447
448
449
450
451
452
453
454
455
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 446

class CORSRule < Struct.new(
  :id,
  :allowed_headers,
  :allowed_methods,
  :allowed_origins,
  :expose_headers,
  :max_age_seconds)
  SENSITIVE = []
  include Aws::Structure
end

#allowed_methodsArray<String>

An HTTP method that you allow the origin to execute. Valid values are GET, PUT, HEAD, POST, and DELETE.

Returns:

  • (Array<String>)


446
447
448
449
450
451
452
453
454
455
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 446

class CORSRule < Struct.new(
  :id,
  :allowed_headers,
  :allowed_methods,
  :allowed_origins,
  :expose_headers,
  :max_age_seconds)
  SENSITIVE = []
  include Aws::Structure
end

#allowed_originsArray<String>

One or more origins you want customers to be able to access the bucket from.

Returns:

  • (Array<String>)


446
447
448
449
450
451
452
453
454
455
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 446

class CORSRule < Struct.new(
  :id,
  :allowed_headers,
  :allowed_methods,
  :allowed_origins,
  :expose_headers,
  :max_age_seconds)
  SENSITIVE = []
  include Aws::Structure
end

#expose_headersArray<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).

Returns:

  • (Array<String>)


446
447
448
449
450
451
452
453
454
455
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 446

class CORSRule < Struct.new(
  :id,
  :allowed_headers,
  :allowed_methods,
  :allowed_origins,
  :expose_headers,
  :max_age_seconds)
  SENSITIVE = []
  include Aws::Structure
end

#idString

Unique identifier for the rule. The value cannot be longer than 255 characters.

Returns:

  • (String)


446
447
448
449
450
451
452
453
454
455
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 446

class CORSRule < Struct.new(
  :id,
  :allowed_headers,
  :allowed_methods,
  :allowed_origins,
  :expose_headers,
  :max_age_seconds)
  SENSITIVE = []
  include Aws::Structure
end

#max_age_secondsInteger

The time in seconds that your browser is to cache the preflight response for the specified resource.

Returns:

  • (Integer)


446
447
448
449
450
451
452
453
454
455
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 446

class CORSRule < Struct.new(
  :id,
  :allowed_headers,
  :allowed_methods,
  :allowed_origins,
  :expose_headers,
  :max_age_seconds)
  SENSITIVE = []
  include Aws::Structure
end