ALIYUN::DDoSPro::ProInstance

Updated at:

ALIYUN::DDoSPro::ProInstance类型用于创建DDoS高防提供新BGP(Anti-DDoS Pro)。

语法

{
  "Type": "ALIYUN::DDoSPro::ProInstance",
  "Properties": {
    "NormalQps": Integer,
    "Period": Integer,
    "PortCount": Integer,
    "Edition": String,
    "BurstBandwidthMode": String,
    "ServiceBandwidth": Integer,
    "ServicePartner": String,
    "BaseBandwidth": Integer,
    "FunctionVersion": String,
    "Bandwidth": Integer,
    "AddressType": String,
    "PeriodUnit": String,
    "DomainCount": Integer,
      "Tags": List
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

NormalQps

Integer

否

否

正常业务QPS。

取值范围:3000~100000,必须是100的整数倍。

Period

Integer

否

否

购买时长。

  • 当PeriodUnit为Month/mouth时,取值为:1、2、3、4、5、6、12、24。

  • 当PeriodUnit为Year/year时,取值为:1、2。

PortCount

Integer

否

否

防护端口数。

不同实例类型(ProductPlan)支持的防护端口数(PortCount)取值不同,具体说明如下:

  • ProductPlan为0时,PortCount的取值范围为5~400。 取值必须为5的倍数。  

  • ProductPlan为1时,PortCount的取值范围为5~400。 取值必须为5的倍数。  

  • ProductPlan为2时,不需要设置该参数。  

  • ProductPlan为3时,PortCount的取值范围为5~400。 取值必须为5的倍数。 

Edition

String

否

否

防护套餐类型。

取值:coop,表示专业版。

BurstBandwidthMode

String

否

否

95弹性业务带宽计费模式。

取值:

  • 0:表示不启用弹性业务带宽。

  • 1:表示启用弹性业务带宽,计费模式为日95模式。

  • 2:表示启用弹性业务带宽,计费模式为月95模式。

ServiceBandwidth

Integer

否

否

业务带宽。

单位:Mbps。

取值范围:100~5000,必须是50的整数倍。

ServicePartner

String

否

否

防护线路类型。

取值:coop-line-001,表示默认防护线路。

BaseBandwidth

Integer

否

否

保底防护带宽。

单位:Gbps。

取值:30、60、100、300、400、500、600。

FunctionVersion

String

否

否

功能套餐类型。

取值:

  • 0:表示标准功能。

  • 1:表示增强功能。

Bandwidth

Integer

否

是

弹性防护带宽。

单位:Gbps。

弹性防护带宽必须大于或等于保底防护带宽。不同保底防护带宽(BaseBandwidth)支持的弹性防护带宽(Bandwidth)取值不同。具体说明如下:

  • BaseBandwidth为30时,Bandwidth取值:30、40、50、60、70、80、100、150、200、300。

  • BaseBandwidth为60时,Bandwidth取值:60、70、80、100、150、200、300、400、500、600。

  • BaseBandwidth为100时,Bandwidth取值:100、150、200、300、400、500、600。

  • BaseBandwidth为300时,Bandwidth取值:300、400、500、600。

  • BaseBandwidth为400时,Bandwidth取值:400、500、600。

  • BaseBandwidth为500时,Bandwidth取值:500、600。

  • BaseBandwidth为600时,Bandwidth取值:600。

AddressType

String

否

否

IP地址的协议类型。

取值:

  • Ipv4:表示IPv4协议。

  • Ipv6:表示IPv6协议。

PeriodUnit

String

否

否

订阅持续时间的单位。

默认值:Mouth。

取值:

  • Month/month:月

  • Year/year:年

DomainCount

Integer

否

否

防护域名数。

不同实例类型(ProductPlan)支持的防护域名数(DomainCount)取值不同。具体说明如下:

  • ProductPlan为0时,DomainCount的取值范围为10 ~ 200。 取值必须为10的倍数。  

  • ProductPlan为1时,DomainCount的取值范围为10 ~ 200。 取值必须为10的倍数。  

  • ProductPlan为2时,不需要设置该参数。  

  • ProductPlan为3时,DomainCount的取值范围为10 ~ 200。 取值必须为10的倍数。

Tags

List

否

是

标签列表。

更多信息,请参见Tags属性。

Tags语法

"Tags": [
  {
    "Key": String,
    "Value": String
  }
]

Tags属性

属性名称

类型

必须

允许更新

描述

约束

Key

String

是

否

标签键。

无

Value

String

否

否

标签值。

无

返回值

Fn::GetAtt

  • InstanceId:已创建的实例的ID。

  • Arn:阿里云资源名称。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  AddressType:
    AllowedValues:
    - Ipv4
    - Ipv6
    Description:
      en: "The IP version of the IP address. Valid values: Ipv4\u3001Ipv6"
    Required: false
    Type: String
  Bandwidth:
    Description:
      en: 'The burstable protection bandwidth. Unit: Gbit/s.

        The burstable protection bandwidth must be greater than or equal to the basic
        protection bandwidth. The value of Bandwidth varies based on the value of
        BaseBandwidth.'
    Required: false
    Type: Number
  BaseBandwidth:
    AllowedValues:
    - 30
    - 60
    - 100
    - 300
    - 400
    - 500
    - 600
    Description:
      en: 'The basic protection bandwidth. Unit: Gbit/s.

        Valid values: 30, 60, 100, 300, 400, 500, and 600.'
    Required: false
    Type: Number
  BurstBandwidthMode:
    AllowedValues:
    - '0'
    - '1'
    - '2'
    Description:
      en: 'The metering method of the 95th percentile burstable clean bandwidth. Valid
        values:

        0: disables the burstable clean bandwidth feature.

        1: enables the burstable clean bandwidth feature and uses the daily 95th percentile
        metering method.

        2: enables the burstable clean bandwidth feature and uses the monthly 95th
        percentile metering method.'
    Required: false
    Type: String
  DomainCount:
    Description:
      en: 'The number of domain names that you want to protect.

        Valid values: 50 to 2000. The value must be a multiple of 10.'
    MaxValue: 2000
    MinValue: 50
    Required: false
    Type: Number
  Edition:
    Description:
      en: The mitigation plan of the instance. Set the value to coop, which indicates
        the Profession mitigation plan.
    Required: false
    Type: String
  FunctionVersion:
    AllowedValues:
    - '0'
    - '1'
    Description:
      en: 'The function plan of the instance. Valid values:

        0: the Standard function plan

        1: the Enhanced function plan.'
    Required: false
    Type: String
  NormalQps:
    Description:
      en: 'The clean queries per second (QPS) provided by the instance.

        Valid values: 3000 to 100000. The value must be a multiple of 100.'
    MaxValue: 100000
    MinValue: 3000
    Required: false
    Type: Number
  Period:
    AllowedValues:
    - 1
    - 2
    - 3
    - 4
    - 5
    - 6
    - 12
    - 24
    AssociationProperty: PayPeriod
    Description:
      en: 'The subscription period of the firewallIf PeriodUnit is Month, the valid
        range is 1, 2, 3, 4, 5, 6, 12, 24

        If PeriodUnit is Year, the valid range is 1, 2'
    Required: false
    Type: Number
  PeriodUnit:
    AllowedValues:
    - Month
    - Year
    - month
    - year
    AssociationProperty: PayPeriodUnit
    Description:
      en: 'The unit of the subscription duration. Valid values:

        Month

        Year

        Default value: Month.'
    Required: false
    Type: String
  PortCount:
    Description:
      en: 'The number of ports that you want to protect.

        Valid values: 50 to 400. The value must be a multiple of 5.'
    MaxValue: 400
    MinValue: 50
    Required: false
    Type: Number
  ServiceBandwidth:
    Description:
      en: 'The clean bandwidth provided by the instance. Unit: Mbit/s.

        Valid values: 100 to 5000. The value must be a multiple of 50.'
    MaxValue: 5000
    MinValue: 100
    Required: false
    Type: Number
  ServicePartner:
    Description:
      en: The type of the protection line. Set the value to coop-line-001, which indicates
        the default protection line.
    Required: false
    Type: String
Resources:
  ProInstance:
    Properties:
      AddressType:
        Ref: AddressType
      Bandwidth:
        Ref: Bandwidth
      BaseBandwidth:
        Ref: BaseBandwidth
      BurstBandwidthMode:
        Ref: BurstBandwidthMode
      DomainCount:
        Ref: DomainCount
      Edition:
        Ref: Edition
      FunctionVersion:
        Ref: FunctionVersion
      NormalQps:
        Ref: NormalQps
      Period:
        Ref: Period
      PeriodUnit:
        Ref: PeriodUnit
      PortCount:
        Ref: PortCount
      ServiceBandwidth:
        Ref: ServiceBandwidth
      ServicePartner:
        Ref: ServicePartner
    Type: ALIYUN::DDoSPro::ProInstance
Outputs:
  InstanceId:
    Description: The ID of the instance.
    Value:
      Fn::GetAtt:
      - ProInstance
      - InstanceId
                        
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "NormalQps": {
      "Type": "Number",
      "Description": {
        "en": "The clean queries per second (QPS) provided by the instance.\nValid values: 3000 to 100000. The value must be a multiple of 100."
      },
      "Required": false,
      "MinValue": 3000,
      "MaxValue": 100000
    },
    "Period": {
      "AssociationProperty": "PayPeriod",
      "Type": "Number",
      "Description": {
        "en": "The subscription period of the firewallIf PeriodUnit is Month, the valid range is 1, 2, 3, 4, 5, 6, 12, 24\nIf PeriodUnit is Year, the valid range is 1, 2"
      },
      "AllowedValues": [
        1,
        2,
        3,
        4,
        5,
        6,
        12,
        24
      ],
      "Required": false
    },
    "PortCount": {
      "Type": "Number",
      "Description": {
        "en": "The number of ports that you want to protect.\nValid values: 50 to 400. The value must be a multiple of 5."
      },
      "Required": false,
      "MinValue": 50,
      "MaxValue": 400
    },
    "Edition": {
      "Type": "String",
      "Description": {
        "en": "The mitigation plan of the instance. Set the value to coop, which indicates the Profession mitigation plan."
      },
      "Required": false
    },
    "BurstBandwidthMode": {
      "Type": "String",
      "Description": {
        "en": "The metering method of the 95th percentile burstable clean bandwidth. Valid values:\n0: disables the burstable clean bandwidth feature.\n1: enables the burstable clean bandwidth feature and uses the daily 95th percentile metering method.\n2: enables the burstable clean bandwidth feature and uses the monthly 95th percentile metering method."
      },
      "AllowedValues": [
        "0",
        "1",
        "2"
      ],
      "Required": false
    },
    "ServiceBandwidth": {
      "Type": "Number",
      "Description": {
        "en": "The clean bandwidth provided by the instance. Unit: Mbit/s.\nValid values: 100 to 5000. The value must be a multiple of 50."
      },
      "Required": false,
      "MinValue": 100,
      "MaxValue": 5000
    },
    "ServicePartner": {
      "Type": "String",
      "Description": {
        "en": "The type of the protection line. Set the value to coop-line-001, which indicates the default protection line."
      },
      "Required": false
    },
    "BaseBandwidth": {
      "Type": "Number",
      "Description": {
        "en": "The basic protection bandwidth. Unit: Gbit/s.\nValid values: 30, 60, 100, 300, 400, 500, and 600."
      },
      "AllowedValues": [
        30,
        60,
        100,
        300,
        400,
        500,
        600
      ],
      "Required": false
    },
    "FunctionVersion": {
      "Type": "String",
      "Description": {
        "en": "The function plan of the instance. Valid values:\n0: the Standard function plan\n1: the Enhanced function plan."
      },
      "AllowedValues": [
        "0",
        "1"
      ],
      "Required": false
    },
    "Bandwidth": {
      "Type": "Number",
      "Description": {
        "en": "The burstable protection bandwidth. Unit: Gbit/s.\nThe burstable protection bandwidth must be greater than or equal to the basic protection bandwidth. The value of Bandwidth varies based on the value of BaseBandwidth."
      },
      "Required": false
    },
    "AddressType": {
      "Type": "String",
      "Description": {
        "en": "The IP version of the IP address. Valid values: Ipv4、Ipv6"
      },
      "AllowedValues": [
        "Ipv4",
        "Ipv6"
      ],
      "Required": false
    },
    "PeriodUnit": {
      "AssociationProperty": "PayPeriodUnit",
      "Type": "String",
      "Description": {
        "en": "The unit of the subscription duration. Valid values:\nMonth\nYear\nDefault value: Month."
      },
      "AllowedValues": [
        "Month",
        "Year",
        "month",
        "year"
      ],
      "Required": false
    },
    "DomainCount": {
      "Type": "Number",
      "Description": {
        "en": "The number of domain names that you want to protect.\nValid values: 50 to 2000. The value must be a multiple of 10."
      },
      "Required": false,
      "MinValue": 50,
      "MaxValue": 2000
    }
  },
  "Resources": {
    "ProInstance": {
      "Type": "ALIYUN::DDoSPro::ProInstance",
      "Properties": {
        "NormalQps": {
          "Ref": "NormalQps"
        },
        "Period": {
          "Ref": "Period"
        },
        "PortCount": {
          "Ref": "PortCount"
        },
        "Edition": {
          "Ref": "Edition"
        },
        "BurstBandwidthMode": {
          "Ref": "BurstBandwidthMode"
        },
        "ServiceBandwidth": {
          "Ref": "ServiceBandwidth"
        },
        "ServicePartner": {
          "Ref": "ServicePartner"
        },
        "BaseBandwidth": {
          "Ref": "BaseBandwidth"
        },
        "FunctionVersion": {
          "Ref": "FunctionVersion"
        },
        "Bandwidth": {
          "Ref": "Bandwidth"
        },
        "AddressType": {
          "Ref": "AddressType"
        },
        "PeriodUnit": {
          "Ref": "PeriodUnit"
        },
        "DomainCount": {
          "Ref": "DomainCount"
        }
      }
    }
  },
  "Outputs": {
    "InstanceId": {
      "Description": "The ID of the instance.",
      "Value": {
        "Fn::GetAtt": [
          "ProInstance",
          "InstanceId"
        ]
      }
    }
  }
}