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.

CreateDiskFromSnapshotInput

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

type CreateDiskFromSnapshotInput struct { AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"` DiskName *string `locationName:"diskName" type:"string" required:"true"` DiskSnapshotName *string `locationName:"diskSnapshotName" type:"string" required:"true"` SizeInGb *int64 `locationName:"sizeInGb" type:"integer" required:"true"` Tags []*Tag `locationName:"tags" type:"list"` }

AvailabilityZone

Type: *string

The Availability Zone where you want to create the disk (e.g., us-east-2a). Choose the same Availability Zone as the Lightsail instance where you want to create the disk.

Use the GetRegions operation to list the Availability Zones where Lightsail is currently available.

AvailabilityZone is a required field

DiskName

Type: *string

The unique Lightsail disk name (e.g., my-disk).

DiskName is a required field

DiskSnapshotName

Type: *string

The name of the disk snapshot (e.g., my-snapshot) from which to create the new storage disk.

DiskSnapshotName is a required field

SizeInGb

Type: *int64

The size of the disk in GB (e.g., 32).

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

GoString returns the string representation

SetAvailabilityZone

func (s *CreateDiskFromSnapshotInput) SetAvailabilityZone(v string) *CreateDiskFromSnapshotInput

SetAvailabilityZone sets the AvailabilityZone field's value.

SetDiskName

func (s *CreateDiskFromSnapshotInput) SetDiskName(v string) *CreateDiskFromSnapshotInput

SetDiskName sets the DiskName field's value.

SetDiskSnapshotName

func (s *CreateDiskFromSnapshotInput) SetDiskSnapshotName(v string) *CreateDiskFromSnapshotInput

SetDiskSnapshotName sets the DiskSnapshotName field's value.

SetSizeInGb

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

SetSizeInGb sets the SizeInGb field's value.

SetTags

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

SetTags sets the Tags field's value.

String

func (s CreateDiskFromSnapshotInput) String() string

String returns the string representation

Validate

func (s *CreateDiskFromSnapshotInput) Validate() error

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

On this page: