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.
bootable boolean | @alicloud/ros-cdk-core.IResolvable Property bootable: Whether the disk is bootable.
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.
force boolean | @alicloud/ros-cdk-core.IResolvable Property force: Whether to force the operation.
instanceType string | @alicloud/ros-cdk-core.IResolvable Property instanceType: The instance type.
keyPairName string | @alicloud/ros-cdk-core.IResolvable Property keyPairName: The name of the key pair.
password string | @alicloud/ros-cdk-core.IResolvable Property password: The password for the disk.

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.


bootableOptional

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

Property bootable: Whether the disk is bootable.


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.


forceOptional

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

Property force: Whether to force the operation.


instanceTypeOptional

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

Property instanceType: The instance type.

Allowed values are LingJun and ECS, Default is ECS.


keyPairNameOptional

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

Property keyPairName: The name of the key pair.


passwordOptional

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

Property password: The password for the disk.