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.

OriginGroup

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

type OriginGroup struct { FailoverCriteria *OriginGroupFailoverCriteria `type:"structure" required:"true"` Id *string `type:"string" required:"true"` Members *OriginGroupMembers `type:"structure" required:"true"` }

An origin group includes two origins (a primary origin and a second origin to failover to) and a failover criteria that you specify. You create an origin group to support origin failover in CloudFront. When you create or update a distribution, you can specifiy the origin group instead of a single origin, and CloudFront will failover from the primary origin to the second origin under the failover conditions that you've chosen.

FailoverCriteria

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.

Id

Type: *string

The origin group's ID.

Id is a required field

Members

A complex data type for the origins included in an origin group.

Method

GoString

func (s OriginGroup) GoString() string

GoString returns the string representation

SetFailoverCriteria

func (s *OriginGroup) SetFailoverCriteria(v *OriginGroupFailoverCriteria) *OriginGroup

SetFailoverCriteria sets the FailoverCriteria field's value.

SetId

func (s *OriginGroup) SetId(v string) *OriginGroup

SetId sets the Id field's value.

SetMembers

func (s *OriginGroup) SetMembers(v *OriginGroupMembers) *OriginGroup

SetMembers sets the Members field's value.

String

func (s OriginGroup) String() string

String returns the string representation

Validate

func (s *OriginGroup) Validate() error

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

On this page: