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.

PublicKeyConfig

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

type PublicKeyConfig struct { CallerReference *string `type:"string" required:"true"` Comment *string `type:"string"` EncodedKey *string `type:"string" required:"true"` Name *string `type:"string" required:"true"` }

Information about a public key you add to CloudFront to use with features like field-level encryption.

CallerReference

Type: *string

A unique number that ensures that the request can't be replayed.

CallerReference is a required field

Comment

Type: *string

An optional comment about a public key.

EncodedKey

Type: *string

The encoded public key that you want to add to CloudFront to use with features like field-level encryption.

EncodedKey is a required field

Name

Type: *string

The name for a public key you add to CloudFront to use with features like field-level encryption.

Name is a required field

Method

GoString

func (s PublicKeyConfig) GoString() string

GoString returns the string representation

SetCallerReference

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

SetCallerReference sets the CallerReference field's value.

SetComment

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

SetComment sets the Comment field's value.

SetEncodedKey

func (s *PublicKeyConfig) SetEncodedKey(v string) *PublicKeyConfig

SetEncodedKey sets the EncodedKey field's value.

SetName

func (s *PublicKeyConfig) SetName(v string) *PublicKeyConfig

SetName sets the Name field's value.

String

func (s PublicKeyConfig) String() string

String returns the string representation

Validate

func (s *PublicKeyConfig) Validate() error

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

On this page: