You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: "Custom rules. If the parameter is null or not filled, the configuration last set will be used by default.\nNote: This field may return null, indicating that no valid value can be obtained.",
54
53
Elem: &schema.Resource{
55
54
Schema: map[string]*schema.Schema{
56
55
"rules": {
57
56
Type: schema.TypeList,
58
57
Optional: true,
59
-
Computed: true,
60
58
Description: "The custom rule. <br>when modifying the Web protection configuration using ModifySecurityPolicy: <br> - if the Rules parameter is not specified or the parameter length of Rules is zero: clear all custom rule configurations. <br> - if the Rules parameter is not specified: keep the existing custom rule configuration without modification.",
Description: "Custom rule ID. <br>Different rule configuration operations are supported by rule ID: <br> Add a new rule: ID is empty or the ID parameter is not specified; <br> Modify an existing rule: specify the rule ID that needs to be updated/modified; <br> Delete an existing rule: existing rules not included in the Rules parameter will be deleted.",
237
236
},
238
237
"rule_type": {
239
238
Type: schema.TypeString,
239
+
Optional: true,
240
240
Computed: true,
241
241
Description: "Type of custom rule. Values: <li>`BasicAccessRule`: basic access control;</li> <li>`PreciseMatchRule`: exact custom rule, default;</li> <li>`ManagedAccessRule`: expert customized rule, output parameter only.</li>The default value is PreciseMatchRule.",
Description: "Configures the rate limiting rule.",
1658
1657
Elem: &schema.Resource{
1659
1658
Schema: map[string]*schema.Schema{
1660
1659
"rules": {
1661
1660
Type: schema.TypeList,
1662
1661
Optional: true,
1663
-
Computed: true,
1664
1662
Description: "Definition list of precise rate limiting. when using ModifySecurityPolicy to modify the Web protection configuration: <br> <li> if the Rules parameter is not specified or its length is zero: clear all precision rate limiting configurations.</li> <li> if the RateLimitingRules parameter value is unspecified in the SecurityPolicy parameter: retain the existing custom rule configuration without modification.</li>.",
1665
1663
Elem: &schema.Resource{
1666
1664
Schema: map[string]*schema.Schema{
1667
1665
"id": {
1668
1666
Type: schema.TypeString,
1669
1667
Optional: true,
1668
+
Computed: true,
1670
1669
Description: "The ID of precise rate limiting. rule ID supports different rule configuration operations: <li><b>add</b> a new rule: leave the ID empty or do not specify the ID parameter.</li> <li><b>modify</b> an existing rule: specify the rule ID that needs to be updated/modified.</li> <li><b>delete</b> an existing rule: existing Rules not included in the Rules list under the RateLimitingRules parameter will be deleted.</li>.",
Description: "Definition list of exception Rules. when using ModifySecurityPolicy to modify Web protection configuration: <li>if the Rules parameter is not specified or the parameter length is zero: clear all exception rule configurations.</li><li>if the ExceptionRules parameter value is not specified in SecurityPolicy: keep existing exception rule configurations without modification.</li>.",
1891
1888
Elem: &schema.Resource{
1892
1889
Schema: map[string]*schema.Schema{
1893
1890
"id": {
1894
1891
Type: schema.TypeString,
1895
1892
Optional: true,
1893
+
Computed: true,
1896
1894
Description: "The ID of the exception rule. different rule configuration operations are supported by rule ID: <li> <b>add</b> a new rule: leave the ID empty or do not specify the ID parameter.</li> <li> <b>modify</b> an existing rule: specify the rule ID that needs to be updated/modified.</li> <li> <b>delete</b> an existing rule: existing Rules not included in the Rules list under the ExceptionRules parameter will be deleted.</li>.",
Description: "The ID of a Bot custom rule. different rule configuration operations are supported by rule ID: <li><b>add</b> a new rule: leave the ID empty or do not specify the ID parameter.</li> <li><b>modify</b> an existing rule: specify the rule ID that needs to be updated/modified.</li> <li><b>delete</b> an existing rule: existing Rules not included in the Rules list under the BotManagementCustomRules parameter will be deleted.</li>.",
Description: "Client authentication rule ID. supported rule configuration operations by rule ID: <li> <b>add</b> a new rule: leave the ID empty or do not specify the ID parameter.</li> <li> <b>modify</b> an existing rule: specify the rule ID that needs to be updated/modified.</li> <li> <b>delete</b> an existing rule: existing rules not included in the ClientAttestationRule list under BotManagement parameters will be deleted.</li>.",
Description: "Browser spoofing identification rule ID. rule ID supports different rule configuration operations: <li> <b>add</b> a new rule: ID is empty or without specifying the ID parameter;</li> <li> <b>modify</b> an existing rule: specify the rule ID that needs to be updated/modified;</li> <li> <b>delete</b> an existing rule: existing Rules not included in the Rules list of the BrowserImpersonationDetection parameter will be deleted.</li>.",
4830
4831
},
4831
4832
"name": {
@@ -6362,6 +6363,10 @@ func resourceTencentCloudTeoWebSecurityTemplateCreate(d *schema.ResourceData, me
6362
6363
customRule.Id = helper.String(v)
6363
6364
}
6364
6365
6366
+
if v, ok := rulesMap["rule_type"].(string); ok && v != "" {
6367
+
customRule.RuleType = helper.String(v)
6368
+
}
6369
+
6365
6370
if v, ok := rulesMap["priority"].(int); ok {
6366
6371
customRule.Priority = helper.IntInt64(v)
6367
6372
}
@@ -10221,7 +10226,7 @@ func resourceTencentCloudTeoWebSecurityTemplateRead(d *schema.ResourceData, meta
0 commit comments