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/lightsail"

type KeyPair struct { Arn *string `locationName:"arn" type:"string"` CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` Fingerprint *string `locationName:"fingerprint" type:"string"` Location *ResourceLocation `locationName:"location" type:"structure"` Name *string `locationName:"name" type:"string"` ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` SupportCode *string `locationName:"supportCode" type:"string"` Tags []*Tag `locationName:"tags" type:"list"` }

Describes the SSH key pair.

Arn

Type: *string

The Amazon Resource Name (ARN) of the key pair (e.g., arn:aws:lightsail:us-east-2:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE).

CreatedAt

Type: *time.Time

The timestamp when the key pair was created (e.g., 1479816991.349).

Fingerprint

Type: *string

The RSA fingerprint of the key pair.

Location

Describes the resource location.

Name

Type: *string

The friendly name of the SSH key pair.

ResourceType

Type: *string

The resource type (usually KeyPair).

SupportCode

Type: *string

The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.

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 KeyPair) GoString() string

GoString returns the string representation

SetArn

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

SetArn sets the Arn field's value.

SetCreatedAt

func (s *KeyPair) SetCreatedAt(v time.Time) *KeyPair

SetCreatedAt sets the CreatedAt field's value.

SetFingerprint

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

SetFingerprint sets the Fingerprint field's value.

SetLocation

func (s *KeyPair) SetLocation(v *ResourceLocation) *KeyPair

SetLocation sets the Location field's value.

SetName

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

SetName sets the Name field's value.

SetResourceType

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

SetResourceType sets the ResourceType field's value.

SetSupportCode

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

SetSupportCode sets the SupportCode field's value.

SetTags

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

SetTags sets the Tags field's value.

String

func (s KeyPair) String() string

String returns the string representation

On this page: