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.

CreateDiskSnapshotInput

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

type CreateDiskSnapshotInput struct { DiskName *string `locationName:"diskName" type:"string"` DiskSnapshotName *string `locationName:"diskSnapshotName" type:"string" required:"true"` InstanceName *string `locationName:"instanceName" type:"string"` Tags []*Tag `locationName:"tags" type:"list"` }

DiskName

Type: *string

The unique name of the source disk (e.g., Disk-Virginia-1).

This parameter cannot be defined together with the instance name parameter. The disk name and instance name parameters are mutually exclusive.

DiskSnapshotName

Type: *string

The name of the destination disk snapshot (e.g., my-disk-snapshot) based on the source disk.

DiskSnapshotName is a required field

InstanceName

Type: *string

The unique name of the source instance (e.g., Amazon_Linux-512MB-Virginia-1). When this is defined, a snapshot of the instance's system volume is created.

This parameter cannot be defined together with the disk name parameter. The instance name and disk name parameters are mutually exclusive.

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

GoString returns the string representation

SetDiskName

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

SetDiskName sets the DiskName field's value.

SetDiskSnapshotName

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

SetDiskSnapshotName sets the DiskSnapshotName field's value.

SetInstanceName

func (s *CreateDiskSnapshotInput) SetInstanceName(v string) *CreateDiskSnapshotInput

SetInstanceName sets the InstanceName field's value.

SetTags

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

SetTags sets the Tags field's value.

String

func (s CreateDiskSnapshotInput) String() string

String returns the string representation

Validate

func (s *CreateDiskSnapshotInput) Validate() error

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

On this page: