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.

Origins

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

type Origins struct { Items []*Origin `locationNameList:"Origin" min:"1" type:"list" required:"true"` Quantity *int64 `type:"integer" required:"true"` }

A complex type that contains information about origins and origin groups for this distribution.

Items

A complex type that describes the Amazon S3 bucket, HTTP server (for example, a web server), Amazon MediaStore, or other server from which CloudFront gets your files. This can also be an origin group, if you've created an origin group. You must specify at least one origin or origin group.

For the current limit on the number of origins or origin groups that you can specify for a distribution, see Amazon CloudFront Limits (https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_cloudfront) in the AWS General Reference.

Quantity

Type: *int64

The number of origins or origin groups for this distribution.

Quantity is a required field

Method

GoString

func (s Origins) GoString() string

GoString returns the string representation

SetItems

func (s *Origins) SetItems(v []*Origin) *Origins

SetItems sets the Items field's value.

SetQuantity

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

SetQuantity sets the Quantity field's value.

String

func (s Origins) String() string

String returns the string representation

Validate

func (s *Origins) Validate() error

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

On this page: