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.

OriginGroups

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

type OriginGroups struct { Items []*OriginGroup `locationNameList:"OriginGroup" type:"list"` Quantity *int64 `type:"integer" required:"true"` }

A complex data type for the origin groups specified for a distribution.

Items

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.

Quantity

Type: *int64

The number of origin groups.

Quantity is a required field

Method

GoString

func (s OriginGroups) GoString() string

GoString returns the string representation

SetItems

func (s *OriginGroups) SetItems(v []*OriginGroup) *OriginGroups

SetItems sets the Items field's value.

SetQuantity

func (s *OriginGroups) SetQuantity(v int64) *OriginGroups

SetQuantity sets the Quantity field's value.

String

func (s OriginGroups) String() string

String returns the string representation

Validate

func (s *OriginGroups) Validate() error

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

On this page: