ALIYUN::WAF::Instance類型用於建立Web Application Firewall執行個體2.0。
支援的地區為亞太地區東南1(新加坡):ap-southeast-1。
文法
{
"Type": "ALIYUN::WAF::Instance",
"Properties": {
"BigScreen": String,
"PrefessionalService": String,
"ExtDomainPackage": String,
"LogTime": String,
"RenewalStatus": String,
"RenewPeriod": String,
"Period": String,
"ExclusiveIpPackage": String,
"LogStorage": String,
"SubscriptionType": String,
"ExtBandwidth": String,
"WafLog": String,
"PackageCode": String
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
BigScreen | String | 是 | 否 | 可視化大屏服務。 | 取值:
|
PrefessionalService | String | 是 | 否 | 是否使用產品專家服務。 說明 專家服務:提供DingTalk群交流,負責產品配置、策略最佳化、日常監控。 | 取值:
|
ExtDomainPackage | String | 是 | 否 | 網域名稱擴充包數量。 | 取值範圍:0~1000。 |
LogTime | String | 是 | 否 | 日誌儲存時間長度。 | 取值:
單位:天。 |
RenewalStatus | String | 否 | 否 | 自動續約狀態。 | 取值:
|
RenewPeriod | String | 否 | 否 | 自動續約周期 。 | 當設定RenewalStatus為AutoRenewal時,必須指定該參數。 單位:月。 |
Period | String | 否 | 否 | 預付費周期。 | 單位:月。 |
ExclusiveIpPackage | String | 是 | 否 | 網域名稱獨享資源套件數量。 | 取值範圍:0~100。 |
LogStorage | String | 是 | 否 | 日誌儲存容量。 | 取值:
單位:TiB 。 |
SubscriptionType | String | 是 | 否 | 付費類型。 | 取值: Subscription:預付費。 |
ExtBandwidth | String | 是 | 否 | 頻寬擴充包。 | 取值範圍:0~20,000。 單位:Mbps。 |
WafLog | String | 是 | 否 | 是否啟用Log Service。 | 取值:
|
PackageCode | String | 是 | 否 | 套餐。 | 取值:
|
傳回值
Fn::GetAtt
SubscriptionType:付費類型。
InstanceId:WAF執行個體ID。
EndDate:執行個體到期時間。
樣本
JSON
格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"PrefessionalService": {
"Type": "String",
"Description": ""
},
"BigScreen": {
"Type": "String",
"Description": ""
},
"ExtDomainPackage": {
"Type": "String",
"Description": ""
},
"LogTime": {
"Type": "String",
"Description": ""
},
"RenewalStatus": {
"Type": "String",
"Description": ""
},
"RenewPeriod": {
"Type": "String",
"Description": ""
},
"Period": {
"Type": "String",
"Description": ""
},
"ExclusiveIpPackage": {
"Type": "String",
"Description": ""
},
"LogStorage": {
"Type": "String",
"Description": ""
},
"SubscriptionType": {
"Type": "String",
"Description": "Subscription type of the instance"
},
"ExtBandwidth": {
"Type": "String",
"Description": ""
},
"WafLog": {
"Type": "String",
"Description": ""
},
"PackageCode": {
"Type": "String",
"Description": ""
}
},
"Resources": {
"WAFInstance": {
"Type": "ALIYUN::WAF::Instance",
"Properties": {
"PrefessionalService": {
"Ref": "PrefessionalService"
},
"BigScreen": {
"Ref": "BigScreen"
},
"ExtDomainPackage": {
"Ref": "ExtDomainPackage"
},
"LogTime": {
"Ref": "LogTime"
},
"RenewalStatus": {
"Ref": "RenewalStatus"
},
"RenewPeriod": {
"Ref": "RenewPeriod"
},
"Period": {
"Ref": "Period"
},
"ExclusiveIpPackage": {
"Ref": "ExclusiveIpPackage"
},
"LogStorage": {
"Ref": "LogStorage"
},
"SubscriptionType": {
"Ref": "SubscriptionType"
},
"ExtBandwidth": {
"Ref": "ExtBandwidth"
},
"WafLog": {
"Ref": "WafLog"
},
"PackageCode": {
"Ref": "PackageCode"
}
}
}
},
"Outputs": {
"SubscriptionType": {
"Description": "Subscription type of the instance",
"Value": {
"Fn::GetAtt": [
"WAFInstance",
"SubscriptionType"
]
}
},
"Trial": {
"Description": "Trial version",
"Value": {
"Fn::GetAtt": [
"WAFInstance",
"Trial"
]
}
},
"InstanceId": {
"Description": "Instance ID",
"Value": {
"Fn::GetAtt": [
"WAFInstance",
"InstanceId"
]
}
},
"InDebt": {
"Description": "Instance is overdue",
"Value": {
"Fn::GetAtt": [
"WAFInstance",
"InDebt"
]
}
},
"RemainDay": {
"Description": "Number of available days for WAF Trial version",
"Value": {
"Fn::GetAtt": [
"WAFInstance",
"RemainDay"
]
}
},
"EndDate": {
"Description": "Due date of the instance",
"Value": {
"Fn::GetAtt": [
"WAFInstance",
"EndDate"
]
}
}
}
}
YAML
格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
PrefessionalService:
Type: String
Description: ''
BigScreen:
Type: String
Description: ''
ExtDomainPackage:
Type: String
Description: ''
LogTime:
Type: String
Description: ''
RenewalStatus:
Type: String
Description: ''
RenewPeriod:
Type: String
Description: ''
Period:
Type: String
Description: ''
ExclusiveIpPackage:
Type: String
Description: ''
LogStorage:
Type: String
Description: ''
SubscriptionType:
Type: String
Description: Subscription type of the instance
ExtBandwidth:
Type: String
Description: ''
WafLog:
Type: String
Description: ''
PackageCode:
Type: String
Description: ''
Resources:
WAFInstance:
Type: 'ALIYUN::WAF::Instance'
Properties:
PrefessionalService:
Ref: PrefessionalService
BigScreen:
Ref: BigScreen
ExtDomainPackage:
Ref: ExtDomainPackage
LogTime:
Ref: LogTime
RenewalStatus:
Ref: RenewalStatus
RenewPeriod:
Ref: RenewPeriod
Period:
Ref: Period
ExclusiveIpPackage:
Ref: ExclusiveIpPackage
LogStorage:
Ref: LogStorage
SubscriptionType:
Ref: SubscriptionType
ExtBandwidth:
Ref: ExtBandwidth
WafLog:
Ref: WafLog
PackageCode:
Ref: PackageCode
Outputs:
SubscriptionType:
Description: Subscription type of the instance
Value:
'Fn::GetAtt':
- WAFInstance
- SubscriptionType
Trial:
Description: Trial version
Value:
'Fn::GetAtt':
- WAFInstance
- Trial
InstanceId:
Description: Instance ID
Value:
'Fn::GetAtt':
- WAFInstance
- InstanceId
InDebt:
Description: Instance is overdue
Value:
'Fn::GetAtt':
- WAFInstance
- InDebt
RemainDay:
Description: Number of available days for WAF Trial version
Value:
'Fn::GetAtt':
- WAFInstance
- RemainDay
EndDate:
Description: Due date of the instance
Value:
'Fn::GetAtt':
- WAFInstance
- EndDate