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],
  bootable: typing.Union[bool, IResolvable] = None,
  delete_auto_snapshot: typing.Union[bool, IResolvable] = None,
  delete_with_instance: typing.Union[bool, IResolvable] = None,
  device: typing.Union[str, IResolvable] = None,
  force: typing.Union[bool, IResolvable] = None,
  instance_type: typing.Union[str, IResolvable] = None,
  key_pair_name: typing.Union[str, IResolvable] = None,
  password: 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.
bootable typing.Union[bool, ros_cdk_core.IResolvable] Property bootable: Whether the disk is bootable.
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.
force typing.Union[bool, ros_cdk_core.IResolvable] Property force: Whether to force the operation.
instance_type typing.Union[str, ros_cdk_core.IResolvable] Property instanceType: The instance type.
key_pair_name typing.Union[str, ros_cdk_core.IResolvable] Property keyPairName: The name of the key pair.
password typing.Union[str, ros_cdk_core.IResolvable] Property password: The password for the disk.

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.


bootableOptional

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

Property bootable: Whether the disk is bootable.


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.


forceOptional

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

Property force: Whether to force the operation.


instance_typeOptional

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

Property instanceType: The instance type.

Allowed values are LingJun and ECS, Default is ECS.


key_pair_nameOptional

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

Property keyPairName: The name of the key pair.


passwordOptional

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

Property password: The password for the disk.