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.

VolumeAttachment

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

type VolumeAttachment struct { AttachTime *time.Time `locationName:"attachTime" type:"timestamp"` DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"` Device *string `locationName:"device" type:"string"` InstanceId *string `locationName:"instanceId" type:"string"` State *string `locationName:"status" type:"string" enum:"VolumeAttachmentState"` VolumeId *string `locationName:"volumeId" type:"string"` }

Describes volume attachment details.

AttachTime

Type: *time.Time

The time stamp when the attachment initiated.

DeleteOnTermination

Type: *bool

Indicates whether the EBS volume is deleted on instance termination.

Device

Type: *string

The device name.

InstanceId

Type: *string

The ID of the instance.

State

Type: *string

The attachment state of the volume.

VolumeId

Type: *string

The ID of the volume.

Method

GoString

func (s VolumeAttachment) GoString() string

GoString returns the string representation

SetAttachTime

func (s *VolumeAttachment) SetAttachTime(v time.Time) *VolumeAttachment

SetAttachTime sets the AttachTime field's value.

SetDeleteOnTermination

func (s *VolumeAttachment) SetDeleteOnTermination(v bool) *VolumeAttachment

SetDeleteOnTermination sets the DeleteOnTermination field's value.

SetDevice

func (s *VolumeAttachment) SetDevice(v string) *VolumeAttachment

SetDevice sets the Device field's value.

SetInstanceId

func (s *VolumeAttachment) SetInstanceId(v string) *VolumeAttachment

SetInstanceId sets the InstanceId field's value.

SetState

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

SetState sets the State field's value.

SetVolumeId

func (s *VolumeAttachment) SetVolumeId(v string) *VolumeAttachment

SetVolumeId sets the VolumeId field's value.

String

func (s VolumeAttachment) String() string

String returns the string representation

On this page: