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.

CreateKeyPairInput

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

type CreateKeyPairInput struct { KeyPairName *string `locationName:"keyPairName" type:"string" required:"true"` Tags []*Tag `locationName:"tags" type:"list"` }

KeyPairName

Type: *string

The name for your new key pair.

KeyPairName is a required field

Tags

Describes a tag key and optional value assigned to an Amazon Lightsail resource.

For more information about tags in Lightsail, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-tags).

Method

GoString

func (s CreateKeyPairInput) GoString() string

GoString returns the string representation

SetKeyPairName

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

SetKeyPairName sets the KeyPairName field's value.

SetTags

func (s *CreateKeyPairInput) SetTags(v []*Tag) *CreateKeyPairInput

SetTags sets the Tags field's value.

String

func (s CreateKeyPairInput) String() string

String returns the string representation

Validate

func (s *CreateKeyPairInput) Validate() error

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

On this page: