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.

DiskSnapshot

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

type DiskSnapshot struct { Arn *string `locationName:"arn" type:"string"` CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` FromDiskArn *string `locationName:"fromDiskArn" type:"string"` FromDiskName *string `locationName:"fromDiskName" 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:"DiskSnapshotState"` SupportCode *string `locationName:"supportCode" type:"string"` Tags []*Tag `locationName:"tags" type:"list"` }

Describes a block storage disk snapshot.

Arn

Type: *string

The Amazon Resource Name (ARN) of the disk snapshot.

CreatedAt

Type: *time.Time

The date when the disk snapshot was created.

FromDiskArn

Type: *string

The Amazon Resource Name (ARN) of the source disk from which the disk snapshot was created.

FromDiskName

Type: *string

The unique name of the source disk from which the disk snapshot was created.

FromInstanceArn

Type: *string

The Amazon Resource Name (ARN) of the source instance from which the disk (system volume) snapshot was created.

FromInstanceName

Type: *string

The unique name of the source instance from which the disk (system volume) snapshot was created.

Location

Describes the resource location.

Name

Type: *string

The name of the disk snapshot (e.g., my-disk-snapshot).

Progress

Type: *string

The progress of the disk snapshot operation.

ResourceType

Type: *string

The Lightsail resource type (e.g., DiskSnapshot).

SizeInGb

Type: *int64

The size of the disk in GB.

State

Type: *string

The status of the disk snapshot operation.

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

GoString returns the string representation

SetArn

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

SetArn sets the Arn field's value.

SetCreatedAt

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

SetCreatedAt sets the CreatedAt field's value.

SetFromDiskArn

func (s *DiskSnapshot) SetFromDiskArn(v string) *DiskSnapshot

SetFromDiskArn sets the FromDiskArn field's value.

SetFromDiskName

func (s *DiskSnapshot) SetFromDiskName(v string) *DiskSnapshot

SetFromDiskName sets the FromDiskName field's value.

SetFromInstanceArn

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

SetFromInstanceArn sets the FromInstanceArn field's value.

SetFromInstanceName

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

SetFromInstanceName sets the FromInstanceName field's value.

SetLocation

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

SetLocation sets the Location field's value.

SetName

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

SetName sets the Name field's value.

SetProgress

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

SetProgress sets the Progress field's value.

SetResourceType

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

SetResourceType sets the ResourceType field's value.

SetSizeInGb

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

SetSizeInGb sets the SizeInGb field's value.

SetState

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

SetState sets the State field's value.

SetSupportCode

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

SetSupportCode sets the SupportCode field's value.

SetTags

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

SetTags sets the Tags field's value.

String

func (s DiskSnapshot) String() string

String returns the string representation

On this page: