Skip to content

DiskInstanceAttachmentProps

Properties for defining a DiskInstanceAttachment.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ens-diskinstanceattachment

Initializer

import { DiskInstanceAttachmentProps } from '@alicloud/ros-cdk-ens'
const diskInstanceAttachmentProps: DiskInstanceAttachmentProps = { ... }

Properties

Name Type Description
diskId string | @alicloud/ros-cdk-core.IResolvable Property diskId: The ID of the cloud disk to be mounted.
instanceId string | @alicloud/ros-cdk-core.IResolvable Property instanceId: Instance ID.
deleteWithInstance string | @alicloud/ros-cdk-core.IResolvable Property deleteWithInstance: Whether the cloud disk to be mounted is released with the instance Value: true: When the instance is released, the cloud disk is released together with the instance.

diskIdRequired

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

Property diskId: The ID of the cloud disk to be mounted.

The Cloud Disk (DiskId) and the instance (InstanceId) must be on the same node.


instanceIdRequired

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

Property instanceId: Instance ID.


deleteWithInstanceOptional

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

Property deleteWithInstance: Whether the cloud disk to be mounted is released with the instance Value: true: When the instance is released, the cloud disk is released together with the instance.

false: When the instance is released, the cloud disk is retained and is not released together with the instance. Empty means false by default.