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.

Restrictions

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

type Restrictions struct { GeoRestriction *GeoRestriction `type:"structure" required:"true"` }

A complex type that identifies ways in which you want to restrict distribution of your content.

GeoRestriction

A complex type that controls the countries in which your content is distributed. CloudFront determines the location of your users using MaxMind GeoIP databases.

Method

GoString

func (s Restrictions) GoString() string

GoString returns the string representation

SetGeoRestriction

func (s *Restrictions) SetGeoRestriction(v *GeoRestriction) *Restrictions

SetGeoRestriction sets the GeoRestriction field's value.

String

func (s Restrictions) String() string

String returns the string representation

Validate

func (s *Restrictions) Validate() error

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

On this page: