ALIYUN::ENS::Disk is used to create a pay-as-you-go or subscription data disk.
Syntax
{
"Type": "ALIYUN::ENS::Disk",
"Properties": {
"SnapshotId": String,
"Category": String,
"KMSKeyId": String,
"Encrypted": Boolean,
"InstanceChargeType": String,
"Size": String,
"DiskName": String,
"EnsRegionId": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
SnapshotId | String | No | No | The snapshot that you want to use to create the disk. | The following limits apply to SnapshotId and Size:
|
Category | String | Yes | No | The disk category. | Valid values:
|
KMSKeyId | String | No | No | The ID of the Key Management Service (KMS) key that you want to use for the disk. | If you set Encrypted to true and leave KMSKeyId empty, the default service key is used. |
Encrypted | Boolean | No | No | Specifies whether to encrypt the disk. | Valid values:
|
InstanceChargeType | String | Yes | No | The billing method of the instance. | Set the value to PostPaid. A value of PostPaid specifies the pay-as-you-go billing method. |
Size | String | Yes | Yes | The disk size. | Unit: GiB. |
DiskName | String | No | No | The disk name. | None. |
EnsRegionId | String | Yes | No | The node ID. | None. |
Return values
Fn::GetAtt
DiskId: the disk ID.