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.

AttachDiskInput

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

type AttachDiskInput struct { DiskName *string `locationName:"diskName" type:"string" required:"true"` DiskPath *string `locationName:"diskPath" type:"string" required:"true"` InstanceName *string `locationName:"instanceName" type:"string" required:"true"` }

DiskName

Type: *string

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

DiskName is a required field

DiskPath

Type: *string

The disk path to expose to the instance (e.g., /dev/xvdf).

DiskPath is a required field

InstanceName

Type: *string

The name of the Lightsail instance where you want to utilize the storage disk.

InstanceName is a required field

Method

GoString

func (s AttachDiskInput) GoString() string

GoString returns the string representation

SetDiskName

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

SetDiskName sets the DiskName field's value.

SetDiskPath

func (s *AttachDiskInput) SetDiskPath(v string) *AttachDiskInput

SetDiskPath sets the DiskPath field's value.

SetInstanceName

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

SetInstanceName sets the InstanceName field's value.

String

func (s AttachDiskInput) String() string

String returns the string representation

Validate

func (s *AttachDiskInput) Validate() error

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

On this page: