AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

PutCorsPolicyInput

import "github.com/aws/aws-sdk-go/service/mediastore"

type PutCorsPolicyInput struct { ContainerName *string `min:"1" type:"string" required:"true"` CorsPolicy []*CorsRule `min:"1" type:"list" required:"true"` }

ContainerName

Type: *string

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

ContainerName is a required field

CorsPolicy

A rule for a CORS policy. You can add up to 100 rules to a CORS policy. If more than one rule applies, the service uses the first applicable rule listed.

Method

GoString

func (s PutCorsPolicyInput) GoString() string

GoString returns the string representation

SetContainerName

func (s *PutCorsPolicyInput) SetContainerName(v string) *PutCorsPolicyInput

SetContainerName sets the ContainerName field's value.

SetCorsPolicy

func (s *PutCorsPolicyInput) SetCorsPolicy(v []*CorsRule) *PutCorsPolicyInput

SetCorsPolicy sets the CorsPolicy field's value.

String

func (s PutCorsPolicyInput) String() string

String returns the string representation

Validate

func (s *PutCorsPolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: