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.

OriginAccessIdentity

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

type OriginAccessIdentity struct { CloudFrontOriginAccessIdentityConfig *OriginAccessIdentityConfig `type:"structure"` Id *string `type:"string" required:"true"` S3CanonicalUserId *string `type:"string" required:"true"` }

CloudFront origin access identity.

CloudFrontOriginAccessIdentityConfig

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

Id

Type: *string

The ID for the origin access identity, for example, E74FTE3AJFJ256A.

Id is a required field

S3CanonicalUserId

Type: *string

The Amazon S3 canonical user ID for the origin access identity, used when giving the origin access identity read permission to an object in Amazon S3.

S3CanonicalUserId is a required field

Method

GoString

func (s OriginAccessIdentity) GoString() string

GoString returns the string representation

SetCloudFrontOriginAccessIdentityConfig

func (s *OriginAccessIdentity) SetCloudFrontOriginAccessIdentityConfig(v *OriginAccessIdentityConfig) *OriginAccessIdentity

SetCloudFrontOriginAccessIdentityConfig sets the CloudFrontOriginAccessIdentityConfig field's value.

SetId

func (s *OriginAccessIdentity) SetId(v string) *OriginAccessIdentity

SetId sets the Id field's value.

SetS3CanonicalUserId

func (s *OriginAccessIdentity) SetS3CanonicalUserId(v string) *OriginAccessIdentity

SetS3CanonicalUserId sets the S3CanonicalUserId field's value.

String

func (s OriginAccessIdentity) String() string

String returns the string representation

On this page: