Skip to content

DiskAttachmentProps

Properties for defining a DiskAttachment.

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

Initializer

import { DiskAttachmentProps } from '@alicloud/ros-cdk-ecs'
const diskAttachmentProps: DiskAttachmentProps = { ... }

Properties

Name Type Description
diskId string | @alicloud/ros-cdk-core.IResolvable Property diskId: The disk id to attached.
instanceId string | @alicloud/ros-cdk-core.IResolvable Property instanceId: The instanceId to attach the disk.
deleteAutoSnapshot boolean | @alicloud/ros-cdk-core.IResolvable Property deleteAutoSnapshot: Whether the auto snapshot is released with the disk.
deleteWithInstance boolean | @alicloud/ros-cdk-core.IResolvable 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 string | @alicloud/ros-cdk-core.IResolvable Property device: The device where the volume is exposed on the instance.

diskIdRequired

public readonly diskId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property diskId: The disk id to attached.


instanceIdRequired

public readonly instanceId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property instanceId: The instanceId to attach the disk.


deleteAutoSnapshotOptional

public readonly deleteAutoSnapshot: boolean | IResolvable;
  • Type: boolean | @alicloud/ros-cdk-core.IResolvable

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

Default to true.


deleteWithInstanceOptional

public readonly deleteWithInstance: boolean | IResolvable;
  • Type: boolean | @alicloud/ros-cdk-core.IResolvable

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

public readonly device: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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.