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.

InstanceSnapshot

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

type InstanceSnapshot struct { Arn *string `locationName:"arn" type:"string"` CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` FromAttachedDisks []*Disk `locationName:"fromAttachedDisks" type:"list"` FromBlueprintId *string `locationName:"fromBlueprintId" type:"string"` FromBundleId *string `locationName:"fromBundleId" type:"string"` FromInstanceArn *string `locationName:"fromInstanceArn" type:"string"` FromInstanceName *string `locationName:"fromInstanceName" type:"string"` Location *ResourceLocation `locationName:"location" type:"structure"` Name *string `locationName:"name" type:"string"` Progress *string `locationName:"progress" type:"string"` ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` SizeInGb *int64 `locationName:"sizeInGb" type:"integer"` State *string `locationName:"state" type:"string" enum:"InstanceSnapshotState"` SupportCode *string `locationName:"supportCode" type:"string"` Tags []*Tag `locationName:"tags" type:"list"` }

Describes the snapshot of the virtual private server, or instance.

Arn

Type: *string

The Amazon Resource Name (ARN) of the snapshot (e.g., arn:aws:lightsail:us-east-2:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE).

CreatedAt

Type: *time.Time

The timestamp when the snapshot was created (e.g., 1479907467.024).

FromAttachedDisks

Describes a system disk or an block storage disk.

FromBlueprintId

Type: *string

The blueprint ID from which you created the snapshot (e.g., os_debian_8_3). A blueprint is a virtual private server (or instance) image used to create instances quickly.

FromBundleId

Type: *string

The bundle ID from which you created the snapshot (e.g., micro_1_0).

FromInstanceArn

Type: *string

The Amazon Resource Name (ARN) of the instance from which the snapshot was created (e.g., arn:aws:lightsail:us-east-2:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE).

FromInstanceName

Type: *string

The instance from which the snapshot was created.

Location

Describes the resource location.

Name

Type: *string

The name of the snapshot.

Progress

Type: *string

The progress of the snapshot.

ResourceType

Type: *string

The type of resource (usually InstanceSnapshot).

SizeInGb

Type: *int64

The size in GB of the SSD.

State

Type: *string

The state the snapshot is in.

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

GoString returns the string representation

SetArn

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

SetArn sets the Arn field's value.

SetCreatedAt

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

SetCreatedAt sets the CreatedAt field's value.

SetFromAttachedDisks

func (s *InstanceSnapshot) SetFromAttachedDisks(v []*Disk) *InstanceSnapshot

SetFromAttachedDisks sets the FromAttachedDisks field's value.

SetFromBlueprintId

func (s *InstanceSnapshot) SetFromBlueprintId(v string) *InstanceSnapshot

SetFromBlueprintId sets the FromBlueprintId field's value.

SetFromBundleId

func (s *InstanceSnapshot) SetFromBundleId(v string) *InstanceSnapshot

SetFromBundleId sets the FromBundleId field's value.

SetFromInstanceArn

func (s *InstanceSnapshot) SetFromInstanceArn(v string) *InstanceSnapshot

SetFromInstanceArn sets the FromInstanceArn field's value.

SetFromInstanceName

func (s *InstanceSnapshot) SetFromInstanceName(v string) *InstanceSnapshot

SetFromInstanceName sets the FromInstanceName field's value.

SetLocation

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

SetLocation sets the Location field's value.

SetName

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

SetName sets the Name field's value.

SetProgress

func (s *InstanceSnapshot) SetProgress(v string) *InstanceSnapshot

SetProgress sets the Progress field's value.

SetResourceType

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

SetResourceType sets the ResourceType field's value.

SetSizeInGb

func (s *InstanceSnapshot) SetSizeInGb(v int64) *InstanceSnapshot

SetSizeInGb sets the SizeInGb field's value.

SetState

func (s *InstanceSnapshot) SetState(v string) *InstanceSnapshot

SetState sets the State field's value.

SetSupportCode

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

SetSupportCode sets the SupportCode field's value.

SetTags

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

SetTags sets the Tags field's value.

String

func (s InstanceSnapshot) String() string

String returns the string representation

On this page: