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.

CreateKeyPairOutput

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

type CreateKeyPairOutput struct { KeyPair *KeyPair `locationName:"keyPair" type:"structure"` Operation *Operation `locationName:"operation" type:"structure"` PrivateKeyBase64 *string `locationName:"privateKeyBase64" type:"string"` PublicKeyBase64 *string `locationName:"publicKeyBase64" type:"string"` }

KeyPair

Describes the SSH key pair.

Operation

Describes the API operation.

PrivateKeyBase64

Type: *string

A base64-encoded RSA private key.

PublicKeyBase64

Type: *string

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

Method

GoString

func (s CreateKeyPairOutput) GoString() string

GoString returns the string representation

SetKeyPair

func (s *CreateKeyPairOutput) SetKeyPair(v *KeyPair) *CreateKeyPairOutput

SetKeyPair sets the KeyPair field's value.

SetOperation

func (s *CreateKeyPairOutput) SetOperation(v *Operation) *CreateKeyPairOutput

SetOperation sets the Operation field's value.

SetPrivateKeyBase64

func (s *CreateKeyPairOutput) SetPrivateKeyBase64(v string) *CreateKeyPairOutput

SetPrivateKeyBase64 sets the PrivateKeyBase64 field's value.

SetPublicKeyBase64

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

SetPublicKeyBase64 sets the PublicKeyBase64 field's value.

String

func (s CreateKeyPairOutput) String() string

String returns the string representation

On this page: