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.

Instance

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

type Instance struct { Arn *string `locationName:"arn" type:"string"` BlueprintId *string `locationName:"blueprintId" type:"string"` BlueprintName *string `locationName:"blueprintName" type:"string"` BundleId *string `locationName:"bundleId" type:"string"` CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` Hardware *InstanceHardware `locationName:"hardware" type:"structure"` Ipv6Address *string `locationName:"ipv6Address" type:"string"` IsStaticIp *bool `locationName:"isStaticIp" type:"boolean"` Location *ResourceLocation `locationName:"location" type:"structure"` Name *string `locationName:"name" type:"string"` Networking *InstanceNetworking `locationName:"networking" type:"structure"` PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"` PublicIpAddress *string `locationName:"publicIpAddress" type:"string"` ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` SshKeyName *string `locationName:"sshKeyName" type:"string"` State *InstanceState `locationName:"state" type:"structure"` SupportCode *string `locationName:"supportCode" type:"string"` Tags []*Tag `locationName:"tags" type:"list"` Username *string `locationName:"username" type:"string"` }

Describes an instance (a virtual private server).

Arn

Type: *string

The Amazon Resource Name (ARN) of the instance (e.g., arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE).

BlueprintId

Type: *string

The blueprint ID (e.g., os_amlinux_2016_03).

BlueprintName

Type: *string

The friendly name of the blueprint (e.g., Amazon Linux).

BundleId

Type: *string

The bundle for the instance (e.g., micro_1_0).

CreatedAt

Type: *time.Time

The timestamp when the instance was created (e.g., 1479734909.17).

Hardware

Describes the hardware for the instance.

Ipv6Address

Type: *string

The IPv6 address of the instance.

IsStaticIp

Type: *bool

A Boolean value indicating whether this instance has a static IP assigned to it.

Location

Describes the resource location.

Name

Type: *string

The name the user gave the instance (e.g., Amazon_Linux-1GB-Ohio-1).

Networking

Describes monthly data transfer rates and port information for an instance.

PrivateIpAddress

Type: *string

The private IP address of the instance.

PublicIpAddress

Type: *string

The public IP address of the instance.

ResourceType

Type: *string

The type of resource (usually Instance).

SshKeyName

Type: *string

The name of the SSH key being used to connect to the instance (e.g., LightsailDefaultKeyPair).

State

Describes the virtual private server (or instance) status.

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).

Username

Type: *string

The user name for connecting to the instance (e.g., ec2-user).

Method

GoString

func (s Instance) GoString() string

GoString returns the string representation

SetArn

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

SetArn sets the Arn field's value.

SetBlueprintId

func (s *Instance) SetBlueprintId(v string) *Instance

SetBlueprintId sets the BlueprintId field's value.

SetBlueprintName

func (s *Instance) SetBlueprintName(v string) *Instance

SetBlueprintName sets the BlueprintName field's value.

SetBundleId

func (s *Instance) SetBundleId(v string) *Instance

SetBundleId sets the BundleId field's value.

SetCreatedAt

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

SetCreatedAt sets the CreatedAt field's value.

SetHardware

func (s *Instance) SetHardware(v *InstanceHardware) *Instance

SetHardware sets the Hardware field's value.

SetIpv6Address

func (s *Instance) SetIpv6Address(v string) *Instance

SetIpv6Address sets the Ipv6Address field's value.

SetIsStaticIp

func (s *Instance) SetIsStaticIp(v bool) *Instance

SetIsStaticIp sets the IsStaticIp field's value.

SetLocation

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

SetLocation sets the Location field's value.

SetName

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

SetName sets the Name field's value.

SetNetworking

func (s *Instance) SetNetworking(v *InstanceNetworking) *Instance

SetNetworking sets the Networking field's value.

SetPrivateIpAddress

func (s *Instance) SetPrivateIpAddress(v string) *Instance

SetPrivateIpAddress sets the PrivateIpAddress field's value.

SetPublicIpAddress

func (s *Instance) SetPublicIpAddress(v string) *Instance

SetPublicIpAddress sets the PublicIpAddress field's value.

SetResourceType

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

SetResourceType sets the ResourceType field's value.

SetSshKeyName

func (s *Instance) SetSshKeyName(v string) *Instance

SetSshKeyName sets the SshKeyName field's value.

SetState

func (s *Instance) SetState(v *InstanceState) *Instance

SetState sets the State field's value.

SetSupportCode

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

SetSupportCode sets the SupportCode field's value.

SetTags

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

SetTags sets the Tags field's value.

SetUsername

func (s *Instance) SetUsername(v string) *Instance

SetUsername sets the Username field's value.

String

func (s Instance) String() string

String returns the string representation

On this page: