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.

ImportKeyPairInput

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

type ImportKeyPairInput struct { KeyPairName *string `locationName:"keyPairName" type:"string" required:"true"` PublicKeyBase64 *string `locationName:"publicKeyBase64" type:"string" required:"true"` }

KeyPairName

Type: *string

The name of the key pair for which you want to import the public key.

KeyPairName is a required field

PublicKeyBase64

Type: *string

A base64-encoded public key of the ssh-rsa type.

PublicKeyBase64 is a required field

Method

GoString

func (s ImportKeyPairInput) GoString() string

GoString returns the string representation

SetKeyPairName

func (s *ImportKeyPairInput) SetKeyPairName(v string) *ImportKeyPairInput

SetKeyPairName sets the KeyPairName field's value.

SetPublicKeyBase64

func (s *ImportKeyPairInput) SetPublicKeyBase64(v string) *ImportKeyPairInput

SetPublicKeyBase64 sets the PublicKeyBase64 field's value.

String

func (s ImportKeyPairInput) String() string

String returns the string representation

Validate

func (s *ImportKeyPairInput) Validate() error

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

On this page: