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. |
category
Required
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.
ensRegionId
Required
public readonly ensRegionId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property ensRegionId: The ID of the edge node.
instanceChargeType
Required
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.
size
Required
public readonly size: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property size: The size of the disk.
Unit: GiB.
diskName
Optional
public readonly diskName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property diskName: The name of the disk.
encrypted
Optional
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
kmsKeyId
Optional
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.
snapshotId
Optional
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.