Skip to content

DiskProps

Properties for defining a Disk.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ens-disk

Initializer

import { DiskProps } from '@alicloud/ros-cdk-ens'
const diskProps: DiskProps = { ... }

Properties

Name Type Description
category string | @alicloud/ros-cdk-core.IResolvable Property category: The category of the disk.
ensRegionId string | @alicloud/ros-cdk-core.IResolvable Property ensRegionId: The ID of the edge node.
instanceChargeType string | @alicloud/ros-cdk-core.IResolvable Property instanceChargeType: The billing method of the instance.
size string | @alicloud/ros-cdk-core.IResolvable Property size: The size of the disk.
diskName string | @alicloud/ros-cdk-core.IResolvable Property diskName: The name of the disk.
encrypted boolean | @alicloud/ros-cdk-core.IResolvable Property encrypted: Specifies whether to encrypt the new system disk.
kmsKeyId string | @alicloud/ros-cdk-core.IResolvable Property kmsKeyId: The ID of the Key Management Service (KMS) key that is used by the cloud disk.
snapshotId string | @alicloud/ros-cdk-core.IResolvable Property snapshotId: The ID of the snapshot that you want to use to create the disk.

categoryRequired

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

Property category: The category of the disk.

Valid values: cloud_efficiency: ultra disk. cloud_ssd: all-flash disk.


ensRegionIdRequired

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

Property ensRegionId: The ID of the edge node.


instanceChargeTypeRequired

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

Property instanceChargeType: The billing method of the instance.

Set the value to PostPaid.


sizeRequired

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

Property size: The size of the disk.

Unit: GiB.


diskNameOptional

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

Property diskName: The name of the disk.


encryptedOptional

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

Property encrypted: Specifies whether to encrypt the new system disk.

Valid values: true false (default): no


kmsKeyIdOptional

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

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

Note If you set the Encrypted parameter to true, the default service key is used when the KMSKeyId parameter is empty.


snapshotIdOptional

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

Property snapshotId: The ID of the snapshot that you want to use to create the disk.

The following limits apply to the SnapshotId and Size parameters: If the size of the snapshot specified by SnapshotId is greater than the specified Size value, the size of the created disk is equal to the specified snapshot size. If the size of the snapshot specified by SnapshotId is smaller than the specified Size value, the size of the created disk is equal to the specified Size value.