Skip to content

DisksProps

Properties for defining a Disks.

See https://www.alibabacloud.com/help/ros/developer-reference/datasource-ecs-disks

Initializer

import com.aliyun.ros.cdk.ecs.datasource.DisksProps;
DisksProps.builder()
//  .additionalAttributes(IResolvable)
//  .additionalAttributes(java.util.List<java.lang.String)
//  .additionalAttributes(IResolvable>)
//  .autoSnapshotPolicyId(java.lang.String)
//  .autoSnapshotPolicyId(IResolvable)
//  .category(java.lang.String)
//  .category(IResolvable)
//  .deleteAutoSnapshot(java.lang.String)
//  .deleteAutoSnapshot(IResolvable)
//  .deleteWithInstance(java.lang.Boolean)
//  .deleteWithInstance(IResolvable)
//  .diskChargeType(java.lang.String)
//  .diskChargeType(IResolvable)
//  .diskIds(IResolvable)
//  .diskIds(java.util.List<java.lang.String)
//  .diskIds(IResolvable>)
//  .diskName(java.lang.String)
//  .diskName(IResolvable)
//  .diskType(java.lang.String)
//  .diskType(IResolvable)
//  .enableAutomatedSnapshotPolicy(java.lang.Boolean)
//  .enableAutomatedSnapshotPolicy(IResolvable)
//  .enableAutoSnapshot(java.lang.Boolean)
//  .enableAutoSnapshot(IResolvable)
//  .enableShared(java.lang.String)
//  .enableShared(IResolvable)
//  .encrypted(java.lang.Boolean)
//  .encrypted(IResolvable)
//  .filters(IResolvable)
//  .filters(java.util.List<FiltersProperty)
//  .filters(IResolvable>)
//  .instanceId(java.lang.String)
//  .instanceId(IResolvable)
//  .kmsKeyId(java.lang.String)
//  .kmsKeyId(IResolvable)
//  .multiAttach(java.lang.String)
//  .multiAttach(IResolvable)
//  .portable(java.lang.String)
//  .portable(IResolvable)
//  .refreshOptions(java.lang.String)
//  .refreshOptions(IResolvable)
//  .resourceGroupId(java.lang.String)
//  .resourceGroupId(IResolvable)
//  .snapshotId(java.lang.String)
//  .snapshotId(IResolvable)
//  .status(java.lang.String)
//  .status(IResolvable)
//  .tags(java.util.List<TagsProperty>)
//  .zoneId(java.lang.String)
//  .zoneId(IResolvable)
    .build();

Properties

Name Type Description
additionalAttributes com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property additionalAttributes: The value of attribute N.
autoSnapshotPolicyId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property autoSnapshotPolicyId: The ID of the automatic snapshot policy that is applied to the cloud disk.
category java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property category: The category of the disk.
deleteAutoSnapshot java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property deleteAutoSnapshot: Specifies whether to delete the automatic snapshots of the cloud disk when the disk is released.
deleteWithInstance java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property deleteWithInstance: Specifies whether to release the cloud disk when its associated instance is released.
diskChargeType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property diskChargeType: The billing method of the disk.
diskIds com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property diskIds: The IDs of disks.
diskName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property diskName: The name of the disk.
diskType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property diskType: The type of the disk.
enableAutomatedSnapshotPolicy java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property enableAutomatedSnapshotPolicy: Specifies whether an automatic snapshot policy is applied to the cloud disk.
enableAutoSnapshot java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property enableAutoSnapshot: Specifies whether the automatic snapshot policy feature is enabled for the cloud disk.
enableShared java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property enableShared: Specifies whether the disk is a Shared Block Storage device.
encrypted java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property encrypted: Specifies whether to query only encrypted cloud disks.
filters com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property filters: Filter value when querying resources.
instanceId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property instanceId: The ID of the instance to which the disk is attached.
kmsKeyId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property kmsKeyId: The ID of the Key Management Service (KMS) key used by the cloud disk.
multiAttach java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property multiAttach: Specifies whether the multi-attach feature is enabled for the disk.
portable java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property portable: Specifies whether the disk is removable.
refreshOptions java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
resourceGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property resourceGroupId: The ID of the resource group to which the disk belongs.
snapshotId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property snapshotId: The ID of the snapshot used to create the cloud disk.
status java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property status: The state of the cloud disk.
tags java.util.List Property tags: Tags of disks.
zoneId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property zoneId: The ID of the zone for which to query resources.

additionalAttributesOptional

public java.lang.Object getAdditionalAttributes();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

Property additionalAttributes: The value of attribute N.

Set the value to IOPS, which indicates the maximum IOPS of the disk.


autoSnapshotPolicyIdOptional

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

Property autoSnapshotPolicyId: The ID of the automatic snapshot policy that is applied to the cloud disk.


categoryOptional

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

Property category: The category of the disk.

Valid values: all: all disk categories cloud: basic disk cloud_efficiency: ultra disk cloud_ssd: standard SSD ephemeral: retired local disk ephemeral_ssd: local SSD cloud_essd: ESSD local_ssd_pro: I/O-intensive local disk local_hdd_pro: throughput-intensive local disk


deleteAutoSnapshotOptional

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

Property deleteAutoSnapshot: Specifies whether to delete the automatic snapshots of the cloud disk when the disk is released.

Default value: false.


deleteWithInstanceOptional

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

Property deleteWithInstance: Specifies whether to release the cloud disk when its associated instance is released.

Valid values: true: The cloud disk is released when its associated instance is released. false: The cloud disk is not released but is retained as a pay-as-you-go data disk when its associated instance is released. Default value: false.


diskChargeTypeOptional

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

Property diskChargeType: The billing method of the disk.

Valid values: PrePaid: subscription PostPaid: pay-as-you-go


diskIdsOptional

public java.lang.Object getDiskIds();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

Property diskIds: The IDs of disks.

The value is a JSON array that consists of up to 100 disk IDs. Separate the disk IDs with commas (,).


diskNameOptional

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

Property diskName: The name of the disk.


diskTypeOptional

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

Property diskType: The type of the disk.

Valid values: all: system disk and data disk system: system disk data: data disk Default value: all.


enableAutomatedSnapshotPolicyOptional

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

Property enableAutomatedSnapshotPolicy: Specifies whether an automatic snapshot policy is applied to the cloud disk.

true: An automatic snapshot policy is applied to the cloud disk. false: No automatic snapshot policy is applied to the cloud disk. Default value: false.


enableAutoSnapshotOptional

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

Property enableAutoSnapshot: Specifies whether the automatic snapshot policy feature is enabled for the cloud disk.

true: The automatic snapshot policy feature is enabled for the cloud disk. false: The automatic snapshot policy feature is disabled for the cloud disk. Note By default, the automatic snapshot policy feature is enabled for created cloud disks. You need only to apply an automatic snapshot policy to a cloud disk before you can use the automatic snapshot policy.


enableSharedOptional

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

Property enableShared: Specifies whether the disk is a Shared Block Storage device.


encryptedOptional

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

Property encrypted: Specifies whether to query only encrypted cloud disks.

Default value: false.


filtersOptional

public java.lang.Object getFilters();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

Property filters: Filter value when querying resources.


instanceIdOptional

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

Property instanceId: The ID of the instance to which the disk is attached.


kmsKeyIdOptional

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

Property kmsKeyId: The ID of the Key Management Service (KMS) key used by the cloud disk.


multiAttachOptional

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

Property multiAttach: Specifies whether the multi-attach feature is enabled for the disk.

Valid values: Disabled: The multi-attach feature is disabled. Enabled: The multi-attach feature is enabled. LegacyShared: Shared Block Storage devices are queried. The multi-attach feature is in invitational preview. To use this feature, submit a ticket.


portableOptional

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

Property portable: Specifies whether the disk is removable.

Valid values: true: The disk is removable.A removable disk can independently exist and can be attached to or detached from an instance within the same zone. false: The disk is not removable. A disk that is not removable cannot independently exist or be attached to or detached from an instance within the same zone. The Portable attribute of the following disks is false, and these disks share the same lifecycle with their associated instances: Local disks Local SSDs Subscription data disks


refreshOptionsOptional

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

Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.

Valid values:

  • Never: Never refresh the datasource resource when the stack is updated.
  • Always: Always refresh the datasource resource when the stack is updated. Default is Never.

resourceGroupIdOptional

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

Property resourceGroupId: The ID of the resource group to which the disk belongs.

If this parameter is specified to query resources,up to 1,000 resources that belong to the specified resource group can be displayed in the response.


snapshotIdOptional

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

Property snapshotId: The ID of the snapshot used to create the cloud disk.


statusOptional

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

Property status: The state of the cloud disk.

For more information, see Disk states. Valid values: In_use Available Attaching Detaching Creating ReIniting All Default value: All.


tagsOptional

public java.util.List<TagsProperty> getTags();
  • Type: java.util.List

Property tags: Tags of disks.


zoneIdOptional

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

Property zoneId: The ID of the zone for which to query resources.