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. |
diskId
Required
public readonly diskId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property diskId: The disk id to attached.
instanceId
Required
public readonly instanceId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property instanceId: The instanceId to attach the disk.
deleteAutoSnapshot
Optional
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.
deleteWithInstance
Optional
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.
device
Optional
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.