ALIYUN::DRDS::DrdsInstance类型用于创建指定规格的DRDS实例。

语法

{
  "Type": "ALIYUN::DRDS::DrdsInstance",
  "Properties": {
    "VpcId": String,
    "Description": String,
    "InstanceSeries": String,
    "Specification": String,
    "PayType": String,
    "ZoneId": String,
    "PricingCycle": String,
    "Duration": Integer,
    "VswitchId": String,
    "IsAutoRenew": Boolean,
    "Type": String,
    "Quantity": Integer
  }
}

属性

属性名称 类型 必须 允许更新 描述 约束
VpcId String 虚拟专用网络ID,创建VPC网络类型的DRDS时必须指定。
Description String DRDS实例的描述 长度为2~128个字符
InstanceSeries String

实例系列,详请请参见《实例系列参数》

取值:
  • drds.sn1.4c8g
  • drds.sn1.8c16g
  • drds.sn1.16c32g
  • drds.sn1.32c64g
Specification String 实例规格。例如,drds.sn1.4c8g.8C16G由DRDS实例系列(drds.sn1.4c8g)加上具体的实例规格(8C16G)组成。DRDS实例规格取值范围请参见:分布式关系型数据库服务规格和定价
PayType String

付费类型,详情请参见《付费类型参数表》

取值:
  • drdsPost
  • drdsPre
ZoneId String 可用区。一个可用区属于某个地域,如杭州可用区A(cn-hangzhou-a)属于地域杭州(cn-hangzhou)。
PricingCycle String 订购的周期单位 取值:
  • year:年
  • month:月
付费类型是drdsPre时此参数生效。
Duration Integer 订购的周期数量 取值:
  • PricingCycle=year时:1~3
  • PricingCycle=month时:1~9
付费类型是drdsPre时此参数生效。
VswitchId String 虚拟交换机ID,创建VPC网络类型的DRDS时必须指定。
IsAutoRenew Boolean 是否自动续费 如果按月购买则自动续费一个月,如果按年购买则自动续费一年。付费类型是drdsPre时此参数生效。
Type String 实例类型 取值:
  • 0:共享实例
  • 1:专享实例
  • PRIVATE:专享实例
  • PUBLIC:共享实例
Quantity Integer 购买数量

返回值

Fn::GetAtt

  • OrderId: 订单ID。
  • DrdsInstanceId: 实例ID。

示例

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Resources": {
    "DrdsInstance": {
      "Type": "ALIYUN::DRDS::DrdsInstance",
      "Properties": {
        "VpcId": {
          "Ref": "VpcId"
        },
        "Description": {
          "Ref": "Description"
        },
        "InstanceSeries": {
          "Ref": "InstanceSeries"
        },
        "Specification": {
          "Ref": "Specification"
        },
        "PayType": {
          "Ref": "PayType"
        },
        "ZoneId": {
          "Ref": "ZoneId"
        },
        "PricingCycle": {
          "Ref": "PricingCycle"
        },
        "Duration": {
          "Ref": "Duration"
        },
        "VswitchId": {
          "Ref": "VswitchId"
        },
        "IsAutoRenew": {
          "Ref": "IsAutoRenew"
        },
        "Type": {
          "Ref": "Type"
        },
        "Quantity": {
          "Ref": "Quantity"
        }
      }
    }
  },
  "Parameters": {
    "VpcId": {
      "Type": "String",
      "Description": "Virtual private network ID, must be specified when creating a DRDS for VPC network type"
    },
    "Description": {
      "Type": "String",
      "Description": "Description of the DRDS instance, 2-128 characters"
    },
    "InstanceSeries": {
      "Type": "String",
      "Description": "drds.sn1.4c8g Starter Edition; drds.sn1.8c16g Standard Edition; drds.sn1.16c32g Business Edition; drds.sn1.32c64g Ultimate Edition",
      "AllowedValues": [
        "drds.sn1.4c8g",
        "drds.sn1.8c16g",
        "drds.sn1.16c32g",
        "drds.sn1.32c64g"
      ]
    },
    "Specification": {
      "Type": "String",
      "Description": "The example specification, for example, drds.sn1.4c8g.8C16G, consists of the DRDS instance series (drds.sn1.4c8g) plus a specific example specification (8C16G). For the DRDS instance specification value range, see: Distributed Relational Database Service Specifications and Pricing"
    },
    "PayType": {
      "Type": "String",
      "Description": "For the type of payment, see \"Payment Type Parameter Table\"",
      "AllowedValues": [
        "drdsPost",
        "drdsPre"
      ]
    },
    "ZoneId": {
      "Type": "String",
      "Description": "Availability zone, an available zone belongs to a certain zone, such as Hangzhou Availability Zone A (cn-hangzhou-a) belongs to the region Hangzhou (cn-hangzhou)"
    },
    "PricingCycle": {
      "Type": "String",
      "Description": "The unit of the order period, year: year, month: month. The parameter takes effect when the payment type is drdsPre.",
      "AllowedValues": [
        "year",
        "month"
      ]
    },
    "Duration": {
      "Type": "Number",
      "Description": "The number of cycles ordered. When PricingCycle=year, the value is 1-3; when PricingCycle=month, the value is 1-9. The parameter takes effect when the payment type is drdsPre.",
      "MaxValue": 9,
      "MinValue": 1
    },
    "VswitchId": {
      "Type": "String",
      "Description": "Virtual switch ID, must be specified when creating a DRDS for VPC network type"
    },
    "IsAutoRenew": {
      "Type": "Boolean",
      "Description": "Whether to renew the fee automatically, if it is purchased on a monthly basis, it will automatically renew for one month, and if it is purchased on an annual basis, it will automatically renew for one year. The parameter takes effect when the payment type is drdsPre.",
      "AllowedValues": [
        "True",
        "true",
        "False",
        "false"
      ]
    },
    "Type": {
      "Type": "String",
      "Description": "Instance type, instance type 0 - shared instance 1 - exclusive instance, in addition, this parameter can also pass PRIVATE and PUBLIC to represent exclusive instance and shared instance respectively",
      "AllowedValues": [
        "0",
        "1",
        "PRIVATE",
        "PUBLIC"
      ]
    },
    "Quantity": {
      "Type": "Number",
      "Description": "Purchase quantity",
      "MinValue": 1
    }
  },
  "Outputs": {
    "OrderId": {
      "Description": "order number",
      "Value": {
        "Fn::GetAtt": [
          "DrdsInstance",
          "OrderId"
        ]
      }
    },
    "DrdsInstanceId": {
      "Description": "instance id",
      "Value": {
        "Fn::GetAtt": [
          "DrdsInstance",
          "DrdsInstanceId"
        ]
      }
    }
  }
}