Skip to content

Commit 4556a81

Browse files
SevenEarthhellertang
authored andcommitted
fix(ckafka): [116791339] Updated ckafka route documentation (#2614)
* add * add
1 parent b3fca6b commit 4556a81

File tree

4 files changed

+33
-13
lines changed

4 files changed

+33
-13
lines changed

.changelog/2614.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_route: Updated ckafka route documentation
3+
```

tencentcloud/services/ckafka/resource_tc_ckafka_route.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,20 @@ Provides a resource to create a ckafka route
33
Example Usage
44

55
```hcl
6-
resource "tencentcloud_ckafka_route" "route" {
7-
instance_id = "ckafka-xxxxxx"
8-
vip_type = 3
9-
vpc_id = "vpc-xxxxxx"
10-
subnet_id = "subnet-xxxxxx"
11-
access_type = 0
12-
public_network = 3
6+
resource "tencentcloud_ckafka_route" "example" {
7+
instance_id = "ckafka-8j4rodrr"
8+
vip_type = 3
9+
vpc_id = "vpc-axrsmmrv"
10+
subnet_id = "subnet-j5vja918"
11+
access_type = 0
12+
public_network = 3
1313
}
14-
```
14+
```
15+
16+
Import
17+
18+
ckafka route can be imported using the id, e.g.
19+
20+
```
21+
terraform import tencentcloud_ckafka_route.example ckafka-8j4rodrr#135912
22+
```

tencentcloud/services/tco/resource_tc_organization_org_manage_policy_config_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package tco_test
22

33
import (
4-
tcacctest "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/acctest"
54
"testing"
65

6+
tcacctest "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/acctest"
7+
78
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
89
)
910

website/docs/r/ckafka_route.html.markdown

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ Provides a resource to create a ckafka route
1414
## Example Usage
1515

1616
```hcl
17-
resource "tencentcloud_ckafka_route" "route" {
18-
instance_id = "ckafka-xxxxxx"
17+
resource "tencentcloud_ckafka_route" "example" {
18+
instance_id = "ckafka-8j4rodrr"
1919
vip_type = 3
20-
vpc_id = "vpc-xxxxxx"
21-
subnet_id = "subnet-xxxxxx"
20+
vpc_id = "vpc-axrsmmrv"
21+
subnet_id = "subnet-j5vja918"
2222
access_type = 0
2323
public_network = 3
2424
}
@@ -55,3 +55,11 @@ In addition to all arguments above, the following attributes are exported:
5555
* `vport` - Virtual port.
5656

5757

58+
## Import
59+
60+
ckafka route can be imported using the id, e.g.
61+
62+
```
63+
terraform import tencentcloud_ckafka_route.example ckafka-8j4rodrr#135912
64+
```
65+

0 commit comments

Comments
 (0)