Skip to content

Commit e18e9b1

Browse files
author
mikatong
committed
[fix] review update
1 parent c4831e7 commit e18e9b1

File tree

4 files changed

+60
-7
lines changed

4 files changed

+60
-7
lines changed

tencentcloud/provider.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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(),

tencentcloud/resource_tc_clb_instance_topic.go renamed to tencentcloud/resource_tc_clb_log_topic.go

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,18 @@ Provides a resource to create a CLB instance topic.
44
Example 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
*/
1320
package tencentcloud
1421

@@ -22,7 +29,7 @@ import (
2229

2330
var clsActionMu = &sync.Mutex{}
2431

25-
func resourceTencentCloudClbInstanceTopic() *schema.Resource {
32+
func resourceTencentCloudClbLogTopic() *schema.Resource {
2633
return &schema.Resource{
2734
Create: resourceTencentCloudClbInstanceTopicCreate,
2835
Read: resourceTencentCloudClbInstanceTopicRead,
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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+

website/tencentcloud.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -488,15 +488,15 @@
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>

0 commit comments

Comments
 (0)