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.

PublicKey

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

type PublicKey struct { CreatedTime *time.Time `type:"timestamp" required:"true"` Id *string `type:"string" required:"true"` PublicKeyConfig *PublicKeyConfig `type:"structure" required:"true"` }

A complex data type of public keys you add to CloudFront to use with features like field-level encryption.

CreatedTime

Type: *time.Time

A time you added a public key to CloudFront.

CreatedTime is a required field

Id

Type: *string

A unique ID assigned to a public key you've added to CloudFront.

Id is a required field

PublicKeyConfig

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

Method

GoString

func (s PublicKey) GoString() string

GoString returns the string representation

SetCreatedTime

func (s *PublicKey) SetCreatedTime(v time.Time) *PublicKey

SetCreatedTime sets the CreatedTime field's value.

SetId

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

SetId sets the Id field's value.

SetPublicKeyConfig

func (s *PublicKey) SetPublicKeyConfig(v *PublicKeyConfig) *PublicKey

SetPublicKeyConfig sets the PublicKeyConfig field's value.

String

func (s PublicKey) String() string

String returns the string representation

On this page: