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.

OriginAccessIdentityConfig

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

type OriginAccessIdentityConfig struct { CallerReference *string `type:"string" required:"true"` Comment *string `type:"string" required:"true"` }

Origin access identity configuration. Send a GET request to the /CloudFront API version/CloudFront/identity ID/config resource.

CallerReference

Type: *string

A unique value (for example, a date-time stamp) that ensures that the request can't be replayed.

If the value of CallerReference is new (regardless of the content of the CloudFrontOriginAccessIdentityConfig object), a new origin access identity is created.

If the CallerReference is a value already sent in a previous identity request, and the content of the CloudFrontOriginAccessIdentityConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request.

If the CallerReference is a value you already sent in a previous request to create an identity, but the content of the CloudFrontOriginAccessIdentityConfig is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists error.

CallerReference is a required field

Comment

Type: *string

Any comments you want to include about the origin access identity.

Comment is a required field

Method

GoString

func (s OriginAccessIdentityConfig) GoString() string

GoString returns the string representation

SetCallerReference

func (s *OriginAccessIdentityConfig) SetCallerReference(v string) *OriginAccessIdentityConfig

SetCallerReference sets the CallerReference field's value.

SetComment

func (s *OriginAccessIdentityConfig) SetComment(v string) *OriginAccessIdentityConfig

SetComment sets the Comment field's value.

String

func (s OriginAccessIdentityConfig) String() string

String returns the string representation

Validate

func (s *OriginAccessIdentityConfig) Validate() error

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

On this page: