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.

CookiePreference

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

type CookiePreference struct { Forward *string `type:"string" required:"true" enum:"ItemSelection"` WhitelistedNames *CookieNames `type:"structure"` }

A complex type that specifies whether you want CloudFront to forward cookies to the origin and, if so, which ones. For more information about forwarding cookies to the origin, see How CloudFront Forwards, Caches, and Logs Cookies (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Cookies.html) in the Amazon CloudFront Developer Guide.

Forward

Type: *string

Specifies which cookies to forward to the origin for this cache behavior: all, none, or the list of cookies specified in the WhitelistedNames complex type.

Amazon S3 doesn't process cookies. When the cache behavior is forwarding requests to an Amazon S3 origin, specify none for the Forward element.

Forward is a required field

WhitelistedNames

A complex type that specifies whether you want CloudFront to forward cookies to the origin and, if so, which ones. For more information about forwarding cookies to the origin, see How CloudFront Forwards, Caches, and Logs Cookies (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Cookies.html) in the Amazon CloudFront Developer Guide.

Method

GoString

func (s CookiePreference) GoString() string

GoString returns the string representation

SetForward

func (s *CookiePreference) SetForward(v string) *CookiePreference

SetForward sets the Forward field's value.

SetWhitelistedNames

func (s *CookiePreference) SetWhitelistedNames(v *CookieNames) *CookiePreference

SetWhitelistedNames sets the WhitelistedNames field's value.

String

func (s CookiePreference) String() string

String returns the string representation

Validate

func (s *CookiePreference) Validate() error

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

On this page: