Class: Aws::MediaStore::Types::PutCorsPolicyInput
- Inherits:
-
Struct
- Object
- Struct
- Aws::MediaStore::Types::PutCorsPolicyInput
- 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
-
#container_name ⇒ String
The name of the container that you want to assign the CORS policy to.
-
#cors_policy ⇒ Array<Types::CorsRule>
The CORS policy to apply to the container.
Instance Attribute Details
#container_name ⇒ String
The name of the container that you want to assign the CORS policy to.
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_policy ⇒ Array<Types::CorsRule>
The CORS policy to apply to the container.
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 |