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.

OriginGroupFailoverCriteria

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

type OriginGroupFailoverCriteria struct { StatusCodes *StatusCodes `type:"structure" required:"true"` }

A complex data type that includes information about the failover criteria for an origin group, including the status codes for which CloudFront will failover from the primary origin to the second origin.

StatusCodes

A complex data type for the status codes that you specify that, when returned by a primary origin, trigger CloudFront to failover to a second origin.

Method

GoString

func (s OriginGroupFailoverCriteria) GoString() string

GoString returns the string representation

SetStatusCodes

func (s *OriginGroupFailoverCriteria) SetStatusCodes(v *StatusCodes) *OriginGroupFailoverCriteria

SetStatusCodes sets the StatusCodes field's value.

String

func (s OriginGroupFailoverCriteria) String() string

String returns the string representation

Validate

func (s *OriginGroupFailoverCriteria) Validate() error

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

On this page: