Skip to content

DiskAttachmentProps

Properties for defining a DiskAttachment.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-diskattachment

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs"
&alicloudroscdkecs.DiskAttachmentProps {
    DiskId: interface{},
    InstanceId: interface{},
    DeleteAutoSnapshot: interface{},
    DeleteWithInstance: interface{},
    Device: interface{},
}

Properties

Name Type Description
DiskId interface{} Property diskId: The disk id to attached.
InstanceId interface{} Property instanceId: The instanceId to attach the disk.
DeleteAutoSnapshot interface{} Property deleteAutoSnapshot: Whether the auto snapshot is released with the disk.
DeleteWithInstance interface{} Property deleteWithInstance: If property is true, the disk will be deleted while instance is deleted, if property is false, the disk will be retain after instance is deleted.
Device interface{} Property device: The device where the volume is exposed on the instance.

DiskIdRequired

DiskId interface{}
  • Type: interface{}

Property diskId: The disk id to attached.


InstanceIdRequired

InstanceId interface{}
  • Type: interface{}

Property instanceId: The instanceId to attach the disk.


DeleteAutoSnapshotOptional

DeleteAutoSnapshot interface{}
  • Type: interface{}

Property deleteAutoSnapshot: Whether the auto snapshot is released with the disk.

Default to true.


DeleteWithInstanceOptional

DeleteWithInstance interface{}
  • Type: interface{}

Property deleteWithInstance: If property is true, the disk will be deleted while instance is deleted, if property is false, the disk will be retain after instance is deleted.


DeviceOptional

Device interface{}
  • Type: interface{}

Property device: The device where the volume is exposed on the instance.

could be /dev/xvd[b-z]. If not specification, will use default value.