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.

OriginCustomHeader

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

type OriginCustomHeader struct { HeaderName *string `type:"string" required:"true"` HeaderValue *string `type:"string" required:"true"` }

A complex type that contains HeaderName and HeaderValue elements, if any, for this distribution.

HeaderName

Type: *string

The name of a header that you want CloudFront to forward to your origin. For more information, see Forwarding Custom Headers to Your Origin (Web Distributions Only) (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/forward-custom-headers.html) in the Amazon Amazon CloudFront Developer Guide.

HeaderName is a required field

HeaderValue

Type: *string

The value for the header that you specified in the HeaderName field.

HeaderValue is a required field

Method

GoString

func (s OriginCustomHeader) GoString() string

GoString returns the string representation

SetHeaderName

func (s *OriginCustomHeader) SetHeaderName(v string) *OriginCustomHeader

SetHeaderName sets the HeaderName field's value.

SetHeaderValue

func (s *OriginCustomHeader) SetHeaderValue(v string) *OriginCustomHeader

SetHeaderValue sets the HeaderValue field's value.

String

func (s OriginCustomHeader) String() string

String returns the string representation

Validate

func (s *OriginCustomHeader) Validate() error

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

On this page: