File tree Expand file tree Collapse file tree 4 files changed +60
-7
lines changed Expand file tree Collapse file tree 4 files changed +60
-7
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ Cloud Load Balancer(CLB)
206206
207207 Resource
208208 tencentcloud_clb_instance
209- tencentcloud_clb_instance_topic
209+ tencentcloud_clb_log_topic
210210 tencentcloud_clb_listener
211211 tencentcloud_clb_listener_rule
212212 tencentcloud_clb_attachment
@@ -860,7 +860,7 @@ func Provider() terraform.ResourceProvider {
860860 "tencentcloud_lb" : resourceTencentCloudLB (),
861861 "tencentcloud_alb_server_attachment" : resourceTencentCloudAlbServerAttachment (),
862862 "tencentcloud_clb_instance" : resourceTencentCloudClbInstance (),
863- "tencentcloud_clb_instance_topic " : resourceTencentCloudClbInstanceTopic (),
863+ "tencentcloud_clb_log_topic " : resourceTencentCloudClbLogTopic (),
864864 "tencentcloud_clb_listener" : resourceTencentCloudClbListener (),
865865 "tencentcloud_clb_listener_rule" : resourceTencentCloudClbListenerRule (),
866866 "tencentcloud_clb_attachment" : resourceTencentCloudClbServerAttachment (),
Original file line number Diff line number Diff line change @@ -4,11 +4,18 @@ Provides a resource to create a CLB instance topic.
44Example Usage
55
66```hcl
7- resource "tencentcloud_clb_instances_topic " "topic" {
7+ resource "tencentcloud_clb_log_topic " "topic" {
88 topic_name="clb-topic"
99 partition_count=3
1010}
1111```
12+
13+ Import
14+
15+ CLB log topic can be imported using the id, e.g.
16+
17+ ```
18+ $ terraform import tencentcloud_clb_log_topic.topic lb-7a0t6zqb
1219*/
1320package tencentcloud
1421
@@ -22,7 +29,7 @@ import (
2229
2330var clsActionMu = & sync.Mutex {}
2431
25- func resourceTencentCloudClbInstanceTopic () * schema.Resource {
32+ func resourceTencentCloudClbLogTopic () * schema.Resource {
2633 return & schema.Resource {
2734 Create : resourceTencentCloudClbInstanceTopicCreate ,
2835 Read : resourceTencentCloudClbInstanceTopicRead ,
Original file line number Diff line number Diff line change 1+ ---
2+ subcategory : " Cloud Load Balancer(CLB)"
3+ layout : " tencentcloud"
4+ page_title : " TencentCloud: tencentcloud_clb_log_topic"
5+ sidebar_current : " docs-tencentcloud-resource-clb_log_topic"
6+ description : |-
7+ Provides a resource to create a CLB instance topic.
8+ ---
9+
10+ # tencentcloud_clb_log_topic
11+
12+ Provides a resource to create a CLB instance topic.
13+
14+ ## Example Usage
15+
16+ ``` hcl
17+ resource "tencentcloud_clb_log_topic" "topic" {
18+ topic_name = "clb-topic"
19+ partition_count = 3
20+ }
21+ ```
22+
23+ ## Argument Reference
24+
25+ The following arguments are supported:
26+
27+ * ` topic_name ` - (Required) Log topic of CLB instance.
28+ * ` limit ` - (Optional) Fetch topic info pagination limit.
29+ * ` offset ` - (Optional) Fetch topic info pagination offset.
30+ * ` partition_count ` - (Optional) Topic partition count of CLB instance.(Default 1).
31+
32+ ## Attributes Reference
33+
34+ In addition to all arguments above, the following attributes are exported:
35+
36+ * ` id ` - ID of the resource.
37+
38+
39+
40+ ## Import
41+
42+ CLB log topic can be imported using the id, e.g.
43+
44+ ```
45+ $ terraform import tencentcloud_clb_log_topic.topic lb-7a0t6zqb
46+
Original file line number Diff line number Diff line change 488488 < li >
489489 < a href ="/docs/providers/tencentcloud/r/clb_instance.html "> tencentcloud_clb_instance</ a >
490490 </ li >
491- < li >
492- < a href ="/docs/providers/tencentcloud/r/clb_instance_topic.html "> tencentcloud_clb_instance_topic</ a >
493- </ li >
494491 < li >
495492 < a href ="/docs/providers/tencentcloud/r/clb_listener.html "> tencentcloud_clb_listener</ a >
496493 </ li >
497494 < li >
498495 < a href ="/docs/providers/tencentcloud/r/clb_listener_rule.html "> tencentcloud_clb_listener_rule</ a >
499496 </ li >
497+ < li >
498+ < a href ="/docs/providers/tencentcloud/r/clb_log_topic.html "> tencentcloud_clb_log_topic</ a >
499+ </ li >
500500 < li >
501501 < a href ="/docs/providers/tencentcloud/r/clb_redirection.html "> tencentcloud_clb_redirection</ a >
502502 </ li >
You can’t perform that action at this time.
0 commit comments