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.

KeyPair

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

type KeyPair struct { PrivateKey *string `min:"1" type:"string" sensitive:"true"` PublicKey *string `min:"1" type:"string"` }

Describes a key pair.

PrivateKey

Type: *string

The private key.

PublicKey

Type: *string

The public key.

Method

GoString

func (s KeyPair) GoString() string

GoString returns the string representation

SetPrivateKey

func (s *KeyPair) SetPrivateKey(v string) *KeyPair

SetPrivateKey sets the PrivateKey field's value.

SetPublicKey

func (s *KeyPair) SetPublicKey(v string) *KeyPair

SetPublicKey sets the PublicKey field's value.

String

func (s KeyPair) String() string

String returns the string representation

On this page: