DiskProps
Properties for defining a Disk
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-disk
Initializer
import { DiskProps } from '@alicloud/ros-cdk-ecs'
const diskProps: DiskProps = { ... }
Properties
Name | Type | Description |
---|---|---|
autoSnapshotPolicyId |
string | @alicloud/ros-cdk-core.IResolvable |
Property autoSnapshotPolicyId: Auto snapshot policy ID. |
burstingEnabled |
boolean | @alicloud/ros-cdk-core.IResolvable |
Property burstingEnabled: Whether enable bursting. |
deleteAutoSnapshot |
boolean | @alicloud/ros-cdk-core.IResolvable |
Property deleteAutoSnapshot: Whether the auto snapshot is released with the disk. |
description |
string | @alicloud/ros-cdk-core.IResolvable |
Property description: Description of the disk, [2, 256] characters. |
diskCategory |
string | @alicloud/ros-cdk-core.IResolvable |
Property diskCategory: The disk category, now support cloud\/cloud_ssd\/cloud_essd\/cloud_efficiency\/san_ssd\/san_efficiency\/cloud_auto, depends the region. |
diskName |
string | @alicloud/ros-cdk-core.IResolvable |
Property diskName: Display name of the disk, [2, 128] English or Chinese characters, must start with a letter or Chinese in size, can contain numbers, '_' or '.', '-'. |
encrypted |
boolean | @alicloud/ros-cdk-core.IResolvable |
Property encrypted: Whether disk is encrypted, default to false. |
instanceId |
string | @alicloud/ros-cdk-core.IResolvable |
Property instanceId: Create a cloud disk and automatically mount it to the specified InstanceId. |
kmsKeyId |
string | @alicloud/ros-cdk-core.IResolvable |
Property kmsKeyId: KMS key ID used by the cloud disk. |
multiAttach |
string | @alicloud/ros-cdk-core.IResolvable |
Property multiAttach: Specifies whether to enable the multi-attach feature for the disk. |
performanceLevel |
string | @alicloud/ros-cdk-core.IResolvable |
Property performanceLevel: The performance level you select for an ESSD.Default value: PL1. Valid values:PL0: A single enhanced SSD delivers up to 10,000 random read\/write IOPS.PL1: A single enhanced SSD delivers up to 50,000 random read\/write IOPS.PL2: A single enhanced SSD delivers up to 100,000 random read\/write IOPS.PL3: A single enhanced SSD delivers up to 1,000,000 random read\/write IOPS. |
provisionedIops |
number | @alicloud/ros-cdk-core.IResolvable |
Property provisionedIops: Provisioning IOPS. |
resourceGroupId |
string | @alicloud/ros-cdk-core.IResolvable |
Property resourceGroupId: Resource group id. |
size |
number | @alicloud/ros-cdk-core.IResolvable |
Property size: The size of the disk unit in GB. |
snapshotId |
string | @alicloud/ros-cdk-core.IResolvable |
Property snapshotId: If specified, the backup used as the source to create disk. |
storageSetId |
string | @alicloud/ros-cdk-core.IResolvable |
Property storageSetId: Storage set ID. |
storageSetPartitionNumber |
number | @alicloud/ros-cdk-core.IResolvable |
Property storageSetPartitionNumber: The number of storage set partitions. |
tags |
TagsProperty[] |
Property tags: Tags to attach to disk. |
zoneId |
string | @alicloud/ros-cdk-core.IResolvable |
Property zoneId: Create a pay-as-you-go cloud drive within the specified availability area. |
autoSnapshotPolicyId
Optional
public readonly autoSnapshotPolicyId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property autoSnapshotPolicyId: Auto snapshot policy ID.
burstingEnabled
Optional
public readonly burstingEnabled: boolean | IResolvable;
- Type: boolean | @alicloud/ros-cdk-core.IResolvable
Property burstingEnabled: Whether enable bursting.
deleteAutoSnapshot
Optional
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 false.
description
Optional
public readonly description: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property description: Description of the disk, [2, 256] characters.
Do not fill or empty, the default is empty.
diskCategory
Optional
public readonly diskCategory: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property diskCategory: The disk category, now support cloud\/cloud_ssd\/cloud_essd\/cloud_efficiency\/san_ssd\/san_efficiency\/cloud_auto, depends the region.
diskName
Optional
public readonly diskName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property diskName: Display name of the disk, [2, 128] English or Chinese characters, must start with a letter or Chinese in size, can contain numbers, '_' or '.', '-'.
encrypted
Optional
public readonly encrypted: boolean | IResolvable;
- Type: boolean | @alicloud/ros-cdk-core.IResolvable
Property encrypted: Whether disk is encrypted, default to false.
instanceId
Optional
public readonly instanceId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property instanceId: Create a cloud disk and automatically mount it to the specified InstanceId.
Once the instance ID is set, the ResourceGroupId, Tags, and KMSKeyId parameters you set are ignored. - You cannot specify both ZoneId and InstanceId. Default value: null, meaning that a pay-as-you-go cloud drive is created, and the region of the drive is defined by the RegionId and ZoneId.
kmsKeyId
Optional
public readonly kmsKeyId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property kmsKeyId: KMS key ID used by the cloud disk.
multiAttach
Optional
public readonly multiAttach: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property multiAttach: Specifies whether to enable the multi-attach feature for the disk.
Valid values: Disabled: disables the multi-attach feature. Enabled: enables the multi-attach feature. Set the value to Enabled only for ESSDs. Default value: Disabled.
performanceLevel
Optional
public readonly performanceLevel: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property performanceLevel: The performance level you select for an ESSD.Default value: PL1. Valid values:PL0: A single enhanced SSD delivers up to 10,000 random read\/write IOPS.PL1: A single enhanced SSD delivers up to 50,000 random read\/write IOPS.PL2: A single enhanced SSD delivers up to 100,000 random read\/write IOPS.PL3: A single enhanced SSD delivers up to 1,000,000 random read\/write IOPS.
provisionedIops
Optional
public readonly provisionedIops: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property provisionedIops: Provisioning IOPS.
resourceGroupId
Optional
public readonly resourceGroupId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property resourceGroupId: Resource group id.
size
Optional
public readonly size: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property size: The size of the disk unit in GB.
snapshotId
Optional
public readonly snapshotId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property snapshotId: If specified, the backup used as the source to create disk.
storageSetId
Optional
public readonly storageSetId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property storageSetId: Storage set ID.
storageSetPartitionNumber
Optional
public readonly storageSetPartitionNumber: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property storageSetPartitionNumber: The number of storage set partitions.
tags
Optional
public readonly tags: TagsProperty[];
- Type: TagsProperty[]
Property tags: Tags to attach to disk.
Max support 20 tags to add during create disk. Each tag with two properties Key and Value, and Key is required.
zoneId
Optional
public readonly zoneId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property zoneId: Create a pay-as-you-go cloud drive within the specified availability area.
If you do not set InstanceId, ZoneId is required. - You cannot specify both ZoneId and InstanceId.