DiskProps
Properties for defining a Disk
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ens-disk
Initializer
import ros_cdk_ens
ros_cdk_ens.DiskProps(
category: typing.Union[str, IResolvable],
ens_region_id: typing.Union[str, IResolvable],
instance_charge_type: typing.Union[str, IResolvable],
size: typing.Union[str, IResolvable],
disk_name: typing.Union[str, IResolvable] = None,
encrypted: typing.Union[bool, IResolvable] = None,
kms_key_id: typing.Union[str, IResolvable] = None,
snapshot_id: typing.Union[str, IResolvable] = None
)
Properties
Name | Type | Description |
---|---|---|
category |
typing.Union[str, ros_cdk_core.IResolvable] |
Property category: The category of the disk. |
ens_region_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property ensRegionId: The ID of the edge node. |
instance_charge_type |
typing.Union[str, ros_cdk_core.IResolvable] |
Property instanceChargeType: The billing method of the instance. |
size |
typing.Union[str, ros_cdk_core.IResolvable] |
Property size: The size of the disk. |
disk_name |
typing.Union[str, ros_cdk_core.IResolvable] |
Property diskName: The name of the disk. |
encrypted |
typing.Union[bool, ros_cdk_core.IResolvable] |
Property encrypted: Specifies whether to encrypt the new system disk. |
kms_key_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property kmsKeyId: The ID of the Key Management Service (KMS) key that is used by the cloud disk. |
snapshot_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property snapshotId: The ID of the snapshot that you want to use to create the disk. |
category
Required
category: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property category: The category of the disk.
Valid values: cloud_efficiency: ultra disk. cloud_ssd: all-flash disk.
ens_region_id
Required
ens_region_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property ensRegionId: The ID of the edge node.
instance_charge_type
Required
instance_charge_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property instanceChargeType: The billing method of the instance.
Set the value to PostPaid.
size
Required
size: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property size: The size of the disk.
Unit: GiB.
disk_name
Optional
disk_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property diskName: The name of the disk.
encrypted
Optional
encrypted: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, ros_cdk_core.IResolvable]
Property encrypted: Specifies whether to encrypt the new system disk.
Valid values: true false (default): no
kms_key_id
Optional
kms_key_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, 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.
snapshot_id
Optional
snapshot_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, 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.