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

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
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"], # required
      allowed_methods: ["PUT"], # accepts PUT, GET, DELETE, HEAD
      allowed_headers: ["Header"], # required
      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)


490
491
492
493
494
# File 'lib/aws-sdk-mediastore/types.rb', line 490

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:



490
491
492
493
494
# File 'lib/aws-sdk-mediastore/types.rb', line 490

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