public static final class CreateDefenseRuleRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
CreateDefenseRuleRequest |
build() |
CreateDefenseRuleRequest.Builder |
defenseScene(String defenseScene)
The module to which the protection rule that you want to create belongs.
|
CreateDefenseRuleRequest.Builder |
instanceId(String instanceId)
The ID of the Web Application Firewall (WAF) instance.
|
CreateDefenseRuleRequest.Builder |
regionId(String regionId)
The region where the WAF instance resides.
|
CreateDefenseRuleRequest.Builder |
resourceManagerResourceGroupId(String resourceManagerResourceGroupId)
The ID of the resource group.
|
CreateDefenseRuleRequest.Builder |
rules(String rules)
The configurations of the protection rule.
|
CreateDefenseRuleRequest.Builder |
templateId(Long templateId)
The ID of the protection rule template for which you want to create a protection rule.
|
public CreateDefenseRuleRequest.Builder defenseScene(String defenseScene)
* **waf_group:** the basic protection rule module. * **antiscan:** the scan protection module. * **ip_blacklist:** the IP address blacklist module. * **custom_acl:** the custom rule module. * **whitelist:** the whitelist module. * **region_block:** the region blacklist module. * **custom_response:** the custom response module. * **cc:** the HTTP flood protection module. * **tamperproof:** the website tamper-proofing module. * **dlp:** the data leakage prevention module.
public CreateDefenseRuleRequest.Builder instanceId(String instanceId)
> You can call the [DescribeInstance](~~433756~~) operation to obtain the ID of the WAF instance.
public CreateDefenseRuleRequest.Builder regionId(String regionId)
* **cn-hangzhou:** the Chinese mainland. * **ap-southeast-1:** outside the Chinese mainland.
public CreateDefenseRuleRequest.Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId)
public CreateDefenseRuleRequest.Builder rules(String rules)
> The parameters vary based on the value of the **DefenseScene** parameter. For more information, see the "**Protection rule parameters**" section in this topic.
public CreateDefenseRuleRequest.Builder templateId(Long templateId)
public CreateDefenseRuleRequest build()
Copyright © 2024. All rights reserved.