ALIYUN::OTS::VCUInstance

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

集群类型。

取值:

  • SSD:高性能类型。

  • HYBRID:混合容量类型。

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"
        ]
      }
    }
  }
}