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)取值不同。具体说明如下:
|
FunctionVersion | String | 否 | 否 | 功能套餐类型。 | 取值:
|
ProductPlan | String | 否 | 否 | 实例类型。 | 取值:
|
Period | Integer | 否 | 否 | 购买时长。 |
|
PortCount | Integer | 否 | 否 | 防护端口数。 | 不同实例类型(ProductPlan)支持的防护端口数(PortCount)取值不同,具体说明如下:
|
BurstBandwidthMode | String | 否 | 否 | 95弹性业务带宽计费模式。 | 取值:
|
PeriodUnit | String | 否 | 否 | 订阅持续时间的单位。 | 取值:
默认值为Month。 |
DomainCount | Integer | 否 | 否 | 防护域名数。 | 不同实例类型(ProductPlan)支持的防护域名数(DomainCount)取值不同。具体说明如下:
|
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" ] } } } }