Skip to content

Commit 422876a

Browse files
authored
fix(waf): [126010663] tencentcloud_waf_cc update doc for action_type (#3463)
* add * add
1 parent 033001b commit 422876a

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.changelog/3463.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/tencentcloud_waf_cc: update doc for `action_type`
3+
```

tencentcloud/services/waf/resource_tc_waf_cc.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func ResourceTencentCloudWafCc() *schema.Resource {
6767
"action_type": {
6868
Required: true,
6969
Type: schema.TypeString,
70-
Description: "Rule Action, 20 log, 21 captcha, 22 deny, 23 accurate deny.",
70+
Description: "Rule Action, 20 means observation, 21 means human-machine identification, 22 means interception, 23 means precise interception, 26 means precise human-machine identification, and 27 means JS verification.",
7171
},
7272
"priority": {
7373
Required: true,
@@ -382,7 +382,6 @@ func resourceTencentCloudWafCcUpdate(d *schema.ResourceData, meta interface{}) e
382382
)
383383

384384
immutableArgs := []string{"domain", "name"}
385-
386385
for _, v := range immutableArgs {
387386
if d.HasChange(v) {
388387
return fmt.Errorf("argument `%s` cannot be changed", v)

website/docs/r/waf_cc.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ resource "tencentcloud_waf_cc" "example" {
114114

115115
The following arguments are supported:
116116

117-
* `action_type` - (Required, String) Rule Action, 20 log, 21 captcha, 22 deny, 23 accurate deny.
117+
* `action_type` - (Required, String) Rule Action, 20 means observation, 21 means human-machine identification, 22 means interception, 23 means precise interception, 26 means precise human-machine identification, and 27 means JS verification.
118118
* `advance` - (Required, String) Advanced mode (whether to use session detection). 0(disabled) 1(enabled).
119119
* `domain` - (Required, String) Domain.
120120
* `edition` - (Required, String) WAF edition. clb-waf means clb-waf, sparta-waf means saas-waf.

0 commit comments

Comments
 (0)