You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::MediaStore::Types::PutCorsPolicyInput
- Inherits:
-
Struct
- Object
- Struct
- Aws::MediaStore::Types::PutCorsPolicyInput
- Defined in:
- (unknown)
Overview
Note:
When passing PutCorsPolicyInput as input to an Aws::Client method, you can use a vanilla 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.
#cors_policy ⇒ Array<Types::CorsRule>
The CORS policy to apply to the container.