O recurso ALIYUN::WAF::WafSwitch ativa ou desativa a proteção contra ataques na web.
Sintaxe
{
"Type": "ALIYUN::WAF::WafSwitch",
"Properties": {
"InstanceId": String,
"Domain": String,
"ServiceOn": Integer,
"Region": String
}
}
Propriedades
| Parâmetro | Tipo | Obrigatório | Editável | Descrição | Restrição |
| InstanceId | String | Sim | Não compatível | ID da instância do Web Application Firewall. | Nenhuma |
| Domain | String | Sim | Não compatível | Nome de domínio. | Nenhuma |
| ServiceOn | Integer | Sim | Sim | Alternador de proteção contra ataques na web | Valores válidos:
|
| Region | String | Não compatível | Compatível | Região da instância do Web Application Firewall. | Valores válidos:
|
Valor de retorno
Fn::GetAtt
Nenhum
Exemplos
Formato JSON
{
"ROSTemplateFormatVersion": "2015-09-01",
"Resources": {
"WafSwitch": {
"Type": "ALIYUN::WAF::WafSwitch",
"Properties": {
"InstanceId": {
"Ref": "InstanceId"
},
"Domain": {
"Ref": "Domain"
},
"ServiceOn": {
"Ref": "ServiceOn"
},
"Region": {
"Ref": "Region"
}
}
}
},
"Parameters": {
"InstanceId": {
"Type": "String",
"Description": "WAF instance ID. Description Interface You can view your current WAF instance ID by calling DescribePayInfo."
},
"Domain": {
"Type": "String",
"Description": "Domain name."
},
"ServiceOn": {
"Type": "Number",
"Description": "Web attack protection switch, the value of: 0: closed. 1: indicate on.",
"AllowedValues": [
0,
1
]
},
"Region": {
"Type": "String",
"Description": "The region where the WAF instance is located.
Default value: cn.Valid
values:
cn: mainland China
cn-hongkong: Hong Kong (China) and outside China",
"AllowedValues": [
"cn",
"cn-hongkong"
]
}
}
}
Formato YAML
ROSTemplateFormatVersion: '2015-09-01'
Resources:
WafSwitch:
Type: ALIYUN::WAF::WafSwitch
Properties:
InstanceId:
Ref: InstanceId
Domain:
Ref: Domain
ServiceOn:
Ref: ServiceOn
Region:
Ref: Region
Parameters:
InstanceId:
Type: String
Description: WAF instance ID. Description Interface You can view your current
WAF instance ID by calling DescribePayInfo.
Domain:
Type: String
Description: Domain name.
ServiceOn:
Type: Number
Description: 'Web attack protection switch, the value of: 0: closed. 1: indicate
on.'
AllowedValues:
-0
- 1
Region:
Type: String
Description: 'The region where the WAF instance is located.
Default value: cn.Valid
values:
cn: mainland China
cn-hongkong: Hong Kong (China) and outside China'
AllowedValues:
-cn
-cn-hongkong