Skip to content

DiskAttachmentProps

Properties for defining a DiskAttachment.

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

Initializer

import com.aliyun.ros.cdk.ecs.DiskAttachmentProps;
DiskAttachmentProps.builder()
    .diskId(java.lang.String)
    .diskId(IResolvable)
    .instanceId(java.lang.String)
    .instanceId(IResolvable)
//  .bootable(java.lang.Boolean)
//  .bootable(IResolvable)
//  .deleteAutoSnapshot(java.lang.Boolean)
//  .deleteAutoSnapshot(IResolvable)
//  .deleteWithInstance(java.lang.Boolean)
//  .deleteWithInstance(IResolvable)
//  .device(java.lang.String)
//  .device(IResolvable)
//  .force(java.lang.Boolean)
//  .force(IResolvable)
//  .instanceType(java.lang.String)
//  .instanceType(IResolvable)
//  .keyPairName(java.lang.String)
//  .keyPairName(IResolvable)
//  .password(java.lang.String)
//  .password(IResolvable)
    .build();

Properties

Name Type Description
diskId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property diskId: The disk id to attached.
instanceId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property instanceId: The instanceId to attach the disk.
bootable java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property bootable: Whether the disk is bootable.
deleteAutoSnapshot java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property deleteAutoSnapshot: Whether the auto snapshot is released with the disk.
deleteWithInstance java.lang.Boolean OR com.aliyun.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 java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property device: The device where the volume is exposed on the instance.
force java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property force: Whether to force the operation.
instanceType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property instanceType: The instance type.
keyPairName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property keyPairName: The name of the key pair.
password java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property password: The password for the disk.

diskIdRequired

public java.lang.Object getDiskId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property diskId: The disk id to attached.


instanceIdRequired

public java.lang.Object getInstanceId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property instanceId: The instanceId to attach the disk.


bootableOptional

public java.lang.Object getBootable();
  • Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable

Property bootable: Whether the disk is bootable.


deleteAutoSnapshotOptional

public java.lang.Object getDeleteAutoSnapshot();
  • Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable

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

Default to true.


deleteWithInstanceOptional

public java.lang.Object getDeleteWithInstance();
  • Type: java.lang.Boolean OR com.aliyun.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 java.lang.Object getDevice();
  • Type: java.lang.String OR com.aliyun.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 java.lang.Object getForce();
  • Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable

Property force: Whether to force the operation.


instanceTypeOptional

public java.lang.Object getInstanceType();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property instanceType: The instance type.

Allowed values are LingJun and ECS, Default is ECS.


keyPairNameOptional

public java.lang.Object getKeyPairName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property keyPairName: The name of the key pair.


passwordOptional

public java.lang.Object getPassword();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property password: The password for the disk.