Class: Aws::S3::Types::CORSConfiguration

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

Overview

Note:

When making an API call, you may pass CORSConfiguration data as a hash:

{
  cors_rules: [ # required
    {
      id: "ID",
      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 S3 User Guide*.

[1]: docs.aws.amazon.com/AmazonS3/latest/dev/cors.html

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#cors_rulesArray<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.

Returns:


639
640
641
642
643
# File 'lib/aws-sdk-s3/types.rb', line 639

class CORSConfiguration < Struct.new(
  :cors_rules)
  SENSITIVE = []
  include Aws::Structure
end