You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::MediaStore::Types::PutCorsPolicyInput

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

Overview

Note:

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

{
  container_name: "ContainerName", # required
  cors_policy: [ # required
    {
      allowed_origins: ["Origin"],
      allowed_methods: ["PUT"], # accepts PUT, GET, DELETE, HEAD
      allowed_headers: ["Header"],
      max_age_seconds: 1,
      expose_headers: ["Header"],
    },
  ],
}

Instance Attribute Summary collapse

Instance Attribute Details

#container_nameString

The name of the container that you want to assign the CORS policy to.

Returns:

  • (String)


438
439
440
441
442
# File 'gems/aws-sdk-mediastore/lib/aws-sdk-mediastore/types.rb', line 438

class PutCorsPolicyInput < Struct.new(
  :container_name,
  :cors_policy)
  include Aws::Structure
end

#cors_policyArray<Types::CorsRule>

The CORS policy to apply to the container.

Returns:



438
439
440
441
442
# File 'gems/aws-sdk-mediastore/lib/aws-sdk-mediastore/types.rb', line 438

class PutCorsPolicyInput < Struct.new(
  :container_name,
  :cors_policy)
  include Aws::Structure
end