全部产品
Search
文档中心

资源编排:ALIYUN::DDoSPro::PremiumInstance

更新时间:Aug 12, 2024

ALIYUN::DDoSPro::PremiumInstance类型用于创建DDoS高防国际(Anti-DDoS Premium)。

语法

{
  "Type": "ALIYUN::DDoSPro::PremiumInstance",
  "Properties": {
    "NormalQps": Integer,
    "NormalBandwidth": Integer,
    "FunctionVersion": String,
    "ProductPlan": String,
    "Period": Integer,
    "PortCount": Integer,
    "BurstBandwidthMode": String,
    "PeriodUnit": String,
    "DomainCount": Integer,
    "Tags": List
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

NormalQps

Integer

正常业务QPS。

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

NormalBandwidth

Integer

业务带宽。

单位:Mbps。

不同实例类型(ProductPlan)支持的业务带宽(NormalBandwidth)取值不同。具体说明如下:

  • ProductPlan为0时,NormalBandwidth取值:100、150、200、250、300。

  • ProductPlan为1时,NormalBandwidth取值:100、150、200、250、300。

  • ProductPlan为2时,NormalBandwidth取值:10、20、30、40、50、60、70、80、90、100。

  • ProductPlan为3时,NormalBandwidth取值:10、20、30、40、50、60、70、80、90、100、150、200。

FunctionVersion

String

功能套餐类型。

取值:

  • 0:表示标准功能。

  • 1:表示增强功能。

ProductPlan

String

实例类型。

取值:

  • 0:表示保险版实例。

  • 1:表示无忧版实例。

  • 2:表示加速线路实例。

  • 3:表示安全加速线路实例。

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的倍数。 

BurstBandwidthMode

String

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

取值:

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

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

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

PeriodUnit

String

订阅持续时间的单位。

取值:

  • Month/month:月

  • Year/year:年

默认值为Month。

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

标签列表。

最多支持20个,更多信息请参见Tags属性

Tags语法

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

Tags属性

属性名称

类型

必须

允许更新

描述

约束

Key

String

标签键。

Value

String

标签值。

返回值

Fn::GetAtt

InstanceId:已创建的实例的ID。

示例

  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      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.
    
            The value of DomainCount varies based on the value of ProductPlan.
    
            If you set ProductPlan to 0, you can set DomainCount to a value that ranges
            from 10 to 200. The value must be a multiple of 10.
    
            If you set ProductPlan to 1, you can set DomainCount to a value that ranges
            from 10 to 200. The value must be a multiple of 10.
    
            If you set ProductPlan to 2, you do not need to specify this parameter.
    
            If you set ProductPlan to 3, you can set DomainCount to a value that ranges
            from 10 to 200. The value must be a multiple of 10.'
        MaxValue: 200
        MinValue: 10
        Required: false
        Type: Number
      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
      NormalBandwidth:
        Description:
          en: 'The clean bandwidth provided by the instance. Unit: Mbit/s.
    
            The value of NormalBandwidth varies based on the value of ProductPlan.
    
            If you set ProductPlan to 0, you can set NormalBandwidth to 100, 150, 200,
            250, or 300.
    
            If you set ProductPlan to 1, you can set NormalBandwidth to 100, 150, 200,
            250, or 300.
    
            If you set ProductPlan to 2, you can set NormalBandwidth to 10, 20, 30, 40,
            50, 60, 70, 80, 90, or 100.
    
            If you set ProductPlan to 3, you can set NormalBandwidth to 10, 20, 30, 40,
            50, 60, 70, 80, 90, 100, 150, or 200.'
        MaxValue: 300
        MinValue: 10
        Required: false
        Type: Number
      NormalQps:
        Description:
          en: 'The clean QPS provided by the instance.
    
            The value of NormalQps varies based on the value of ProductPlan.
    
            If you set ProductPlan to 0, you can set NormalQps to a value that ranges
            from 500 to 100000. The value must be a multiple of 100.
    
            If you set ProductPlan to 1, you can set NormalQps to a value that ranges
            from 1000 to 100000. The value must be a multiple of 100.
    
            If you set ProductPlan to 2, you do not need to specify this parameter.
    
            If you set ProductPlan to 3, you can set NormalQps to a value that ranges
            from 500 to 100000. The value must be a multiple of 100.'
        MaxValue: 100000
        MinValue: 500
        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.
    
            The value of PortCount varies based on the value of ProductPlan.
    
            If you set ProductPlan to 0, you can set PortCount to a value that ranges
            from 5 to 400. The value must be a multiple of 5.
    
            If you set ProductPlan to 1, you can set PortCount to a value that ranges
            from 5 to 400. The value must be a multiple of 5.
    
            If you set ProductPlan to 2, you do not need to specify this parameter.
    
            If you set ProductPlan to 3, you can set PortCount to a value that ranges
            from 5 to 400. The value must be a multiple of 5.'
        MaxValue: 400
        MinValue: 5
        Required: false
        Type: Number
      ProductPlan:
        AllowedValues:
        - '0'
        - '1'
        - '2'
        - '3'
        Description:
          en: 'The mitigation plan of the instance. Valid values:
    
            0: the Insurance mitigation plan
    
            1: the Unlimited mitigation plan
    
            2: the Chinese Mainland Acceleration (CMA) mitigation plan
    
            3: the Secure Chinese Mainland Acceleration (Sec-CMA) mitigation plan'
        Required: false
        Type: String
    Resources:
      PremiumInstance:
        Properties:
          BurstBandwidthMode:
            Ref: BurstBandwidthMode
          DomainCount:
            Ref: DomainCount
          FunctionVersion:
            Ref: FunctionVersion
          NormalBandwidth:
            Ref: NormalBandwidth
          NormalQps:
            Ref: NormalQps
          Period:
            Ref: Period
          PeriodUnit:
            Ref: PeriodUnit
          PortCount:
            Ref: PortCount
          ProductPlan:
            Ref: ProductPlan
        Type: ALIYUN::DDoSPro::PremiumInstance
    Outputs:
      InstanceId:
        Description: The ID of the instance.
        Value:
          Fn::GetAtt:
          - PremiumInstance
          - InstanceId
                            
  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "NormalQps": {
          "Type": "Number",
          "Description": {
            "en": "The clean QPS provided by the instance.\nThe value of NormalQps varies based on the value of ProductPlan.\nIf you set ProductPlan to 0, you can set NormalQps to a value that ranges from 500 to 100000. The value must be a multiple of 100.\nIf you set ProductPlan to 1, you can set NormalQps to a value that ranges from 1000 to 100000. The value must be a multiple of 100.\nIf you set ProductPlan to 2, you do not need to specify this parameter.\nIf you set ProductPlan to 3, you can set NormalQps to a value that ranges from 500 to 100000. The value must be a multiple of 100."
          },
          "Required": false,
          "MinValue": 500,
          "MaxValue": 100000
        },
        "NormalBandwidth": {
          "Type": "Number",
          "Description": {
            "en": "The clean bandwidth provided by the instance. Unit: Mbit/s.\nThe value of NormalBandwidth varies based on the value of ProductPlan.\nIf you set ProductPlan to 0, you can set NormalBandwidth to 100, 150, 200, 250, or 300.\nIf you set ProductPlan to 1, you can set NormalBandwidth to 100, 150, 200, 250, or 300.\nIf you set ProductPlan to 2, you can set NormalBandwidth to 10, 20, 30, 40, 50, 60, 70, 80, 90, or 100.\nIf you set ProductPlan to 3, you can set NormalBandwidth to 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 150, or 200."
          },
          "Required": false,
          "MinValue": 10,
          "MaxValue": 300
        },
        "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
        },
        "ProductPlan": {
          "Type": "String",
          "Description": {
            "en": "The mitigation plan of the instance. Valid values:\n0: the Insurance mitigation plan\n1: the Unlimited mitigation plan\n2: the Chinese Mainland Acceleration (CMA) mitigation plan\n3: the Secure Chinese Mainland Acceleration (Sec-CMA) mitigation plan"
          },
          "AllowedValues": [
            "0",
            "1",
            "2",
            "3"
          ],
          "Required": false
        },
        "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.\nThe value of PortCount varies based on the value of ProductPlan.\nIf you set ProductPlan to 0, you can set PortCount to a value that ranges from 5 to 400. The value must be a multiple of 5.\nIf you set ProductPlan to 1, you can set PortCount to a value that ranges from 5 to 400. The value must be a multiple of 5.\nIf you set ProductPlan to 2, you do not need to specify this parameter.\nIf you set ProductPlan to 3, you can set PortCount to a value that ranges from 5 to 400. The value must be a multiple of 5."
          },
          "Required": false,
          "MinValue": 5,
          "MaxValue": 400
        },
        "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
        },
        "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.\nThe value of DomainCount varies based on the value of ProductPlan.\nIf you set ProductPlan to 0, you can set DomainCount to a value that ranges from 10 to 200. The value must be a multiple of 10.\nIf you set ProductPlan to 1, you can set DomainCount to a value that ranges from 10 to 200. The value must be a multiple of 10.\nIf you set ProductPlan to 2, you do not need to specify this parameter.\nIf you set ProductPlan to 3, you can set DomainCount to a value that ranges from 10 to 200. The value must be a multiple of 10."
          },
          "Required": false,
          "MinValue": 10,
          "MaxValue": 200
        }
      },
      "Resources": {
        "PremiumInstance": {
          "Type": "ALIYUN::DDoSPro::PremiumInstance",
          "Properties": {
            "NormalQps": {
              "Ref": "NormalQps"
            },
            "NormalBandwidth": {
              "Ref": "NormalBandwidth"
            },
            "FunctionVersion": {
              "Ref": "FunctionVersion"
            },
            "ProductPlan": {
              "Ref": "ProductPlan"
            },
            "Period": {
              "Ref": "Period"
            },
            "PortCount": {
              "Ref": "PortCount"
            },
            "BurstBandwidthMode": {
              "Ref": "BurstBandwidthMode"
            },
            "PeriodUnit": {
              "Ref": "PeriodUnit"
            },
            "DomainCount": {
              "Ref": "DomainCount"
            }
          }
        }
      },
      "Outputs": {
        "InstanceId": {
          "Description": "The ID of the instance.",
          "Value": {
            "Fn::GetAtt": [
              "PremiumInstance",
              "InstanceId"
            ]
          }
        }
      }
    }