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
show all
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

Instance Attribute Details

#container_nameString

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

Returns:

  • (String)

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

#cors_policyArray<Types::CorsRule>

The CORS policy to apply to the container.

Returns: