Skip to content

DiskAttachmentProps

Properties for defining a DiskAttachment.

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

Initializer

import ros_cdk_ecs
ros_cdk_ecs.DiskAttachmentProps(
  disk_id: typing.Union[str, IResolvable],
  instance_id: typing.Union[str, IResolvable],
  delete_auto_snapshot: typing.Union[bool, IResolvable] = None,
  delete_with_instance: typing.Union[bool, IResolvable] = None,
  device: typing.Union[str, IResolvable] = None
)

Properties

Name Type Description
disk_id typing.Union[str, ros_cdk_core.IResolvable] Property diskId: The disk id to attached.
instance_id typing.Union[str, ros_cdk_core.IResolvable] Property instanceId: The instanceId to attach the disk.
delete_auto_snapshot typing.Union[bool, ros_cdk_core.IResolvable] Property deleteAutoSnapshot: Whether the auto snapshot is released with the disk.
delete_with_instance typing.Union[bool, 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 typing.Union[str, ros_cdk_core.IResolvable] Property device: The device where the volume is exposed on the instance.

disk_idRequired

disk_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property diskId: The disk id to attached.


instance_idRequired

instance_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property instanceId: The instanceId to attach the disk.


delete_auto_snapshotOptional

delete_auto_snapshot: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

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

Default to true.


delete_with_instanceOptional

delete_with_instance: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, 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

device: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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.