ALIYUN::OTS::VCUInstance类型用于创建VCU实例。
语法
{
"Type": "ALIYUN::OTS::VCUInstance",
"Properties": {
"ClusterType": String,
"PeriodInMonth": Integer,
"VCU": Integer,
"AliasName": String,
"AutoRenewPeriodInMonth": Integer,
"EnableElasticVCU": Boolean,
"EnableAutoRenew": Boolean,
"InstanceDescription": String,
"ResourceGroupId": String,
"Tags": List
}
}属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
ClusterType | String | 是 | 否 | 集群类型。 | 取值:
|
PeriodInMonth | Integer | 是 | 否 | 购买的时长。 | 单位:月。 取值:1~24。 |
VCU | Integer | 是 | 否 | 实例规格。 | VCU 数量。 取值:0~2000。 |
AliasName | String | 否 | 是 | 实例别名。 | 无 |
AutoRenewPeriodInMonth | Integer | 否 | 否 | 自动续费周期。 | 单位:月。 取值:1~24。 |
EnableElasticVCU | Boolean | 否 | 否 | 是否开启实例弹性。 | 如果开启弹性,实例的峰值 VCU 用量可以超过购买的 VCU 量,但是会有额外的费用。 |
EnableAutoRenew | Boolean | 否 | 否 | 是否开启自动续费。 | 无 |
InstanceDescription | String | 否 | 是 | 实例描述。 | 无 |
ResourceGroupId | String | 否 | 是 | 资源组ID。 | 无 |
Tags | List | 否 | 是 | 标签。 | 每个实例最多绑定20个标签。 更多信息,请参见Tags属性。 |
Tags语法
"Tags": [
{
"Value": String,
"Key": String
}
]Tags属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
Key | String | 是 | 否 | 标签键。 | 无 |
Value | String | 是 | 否 | 标签值。 | 无 |
返回值
Fn::GetAtt
InstanceName:VCU 实例名称。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
PeriodInMonth:
Type: Number
Description:
en: 'Purchase duration. Unit: month. Value range: 1~24.'
Required: true
MinValue: 1
MaxValue: 24
VCU:
Type: Number
Description:
en: 'Number of VCU units. Value range: 0~2000.'
Required: true
MinValue: 0
MaxValue: 2000
ClusterType:
Type: String
Description:
en: |-
Cluster type (i.e. instance specification).
Enumeration values:
SSD: High performance.
HYBRID: Capacity type.
AllowedValues:
- SSD
- HYBRID
Required: true
Resources:
VCUInstance:
Type: ALIYUN::OTS::VCUInstance
Properties:
PeriodInMonth:
Ref: PeriodInMonth
VCU:
Ref: VCU
ClusterType:
Ref: ClusterType
Outputs:
InstanceName:
Description: Name of the tablestore VCU instance.
Value:
Fn::GetAtt:
- VCUInstance
- InstanceName
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"PeriodInMonth": {
"Type": "Number",
"Description": {
"en": "Purchase duration. Unit: month. Value range: 1~24."
},
"Required": true,
"MinValue": 1,
"MaxValue": 24
},
"VCU": {
"Type": "Number",
"Description": {
"en": "Number of VCU units. Value range: 0~2000."
},
"Required": true,
"MinValue": 0,
"MaxValue": 2000
},
"ClusterType": {
"Type": "String",
"Description": {
"en": "Cluster type (i.e. instance specification).\nEnumeration values:\nSSD: High performance.\nHYBRID: Capacity type."
},
"AllowedValues": [
"SSD",
"HYBRID"
],
"Required": true
}
},
"Resources": {
"VCUInstance": {
"Type": "ALIYUN::OTS::VCUInstance",
"Properties": {
"PeriodInMonth": {
"Ref": "PeriodInMonth"
},
"VCU": {
"Ref": "VCU"
},
"ClusterType": {
"Ref": "ClusterType"
}
}
}
},
"Outputs": {
"InstanceName": {
"Description": "Name of the tablestore VCU instance.",
"Value": {
"Fn::GetAtt": [
"VCUInstance",
"InstanceName"
]
}
}
}
}
该文章对您有帮助吗?