Skip to content

Commit 39dbace

Browse files
tongyimingmikatong
andauthored
update ckafka acl doc (#1973)
* update ckafka acl doc * add changelog * update * update --------- Co-authored-by: mikatong <mikatong@tencent.com>
1 parent d299899 commit 39dbace

File tree

3 files changed

+9
-13
lines changed

3 files changed

+9
-13
lines changed

.changelog/1973.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_ckafka_acl: remove `host` limit, update `principal` description
3+
```

tencentcloud/resource_tc_ckafka_acl.go

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -78,25 +78,18 @@ func resourceTencentCloudCkafkaAcl() *schema.Resource {
7878
Description: "ACL permission type. Valid values: `UNKNOWN`, `ANY`, `DENY`, `ALLOW`. and `ALLOW` by default. Currently, CKafka supports `ALLOW` (equivalent to allow list), and other fields will be used for future ACLs compatible with open-source Kafka.",
7979
},
8080
"host": {
81-
Type: schema.TypeString,
82-
Optional: true,
83-
Default: "*",
84-
ForceNew: true,
85-
ValidateFunc: func(i interface{}, s string) (rs []string, error []error) {
86-
if i.(string) == "*" {
87-
return
88-
}
89-
rs, error = validateIp(i, s)
90-
return
91-
},
81+
Type: schema.TypeString,
82+
Optional: true,
83+
Default: "*",
84+
ForceNew: true,
9285
Description: "IP address allowed to access. The default value is `*`, which means that any host can access.",
9386
},
9487
"principal": {
9588
Type: schema.TypeString,
9689
Optional: true,
9790
Default: "*",
9891
ForceNew: true,
99-
Description: "User list. The default value is `*`, which means that any user can access. The current user can only be one included in the user list.",
92+
Description: "User list. The default value is `*`, which means that any user can access. The current user can only be one included in the user list. For example: `root` meaning user root can access.",
10093
},
10194
},
10295
}

website/docs/r/ckafka_acl.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The following arguments are supported:
3636
* `resource_name` - (Required, String, ForceNew) ACL resource name, which is related to `resource_type`. For example, if `resource_type` is `TOPIC`, this field indicates the topic name; if `resource_type` is `GROUP`, this field indicates the group name.
3737
* `host` - (Optional, String, ForceNew) IP address allowed to access. The default value is `*`, which means that any host can access.
3838
* `permission_type` - (Optional, String, ForceNew) ACL permission type. Valid values: `UNKNOWN`, `ANY`, `DENY`, `ALLOW`. and `ALLOW` by default. Currently, CKafka supports `ALLOW` (equivalent to allow list), and other fields will be used for future ACLs compatible with open-source Kafka.
39-
* `principal` - (Optional, String, ForceNew) User list. The default value is `*`, which means that any user can access. The current user can only be one included in the user list.
39+
* `principal` - (Optional, String, ForceNew) User list. The default value is `*`, which means that any user can access. The current user can only be one included in the user list. For example: `root` meaning user root can access.
4040
* `resource_type` - (Optional, String, ForceNew) ACL resource type. Valid values are `UNKNOWN`, `ANY`, `TOPIC`, `GROUP`, `CLUSTER`, `TRANSACTIONAL_ID`. and `TOPIC` by default. Currently, only `TOPIC` is available, and other fields will be used for future ACLs compatible with open-source Kafka.
4141

4242
## Attributes Reference

0 commit comments

Comments
 (0)