Skip to content

fix(ckafka): [116791339] Updated ckafka route documentation #2614

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/2614.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
resource/tencentcloud_ckafka_route: Updated ckafka route documentation
```
24 changes: 16 additions & 8 deletions tencentcloud/services/ckafka/resource_tc_ckafka_route.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,20 @@ Provides a resource to create a ckafka route
Example Usage

```hcl
resource "tencentcloud_ckafka_route" "route" {
instance_id = "ckafka-xxxxxx"
vip_type = 3
vpc_id = "vpc-xxxxxx"
subnet_id = "subnet-xxxxxx"
access_type = 0
public_network = 3
resource "tencentcloud_ckafka_route" "example" {
instance_id = "ckafka-8j4rodrr"
vip_type = 3
vpc_id = "vpc-axrsmmrv"
subnet_id = "subnet-j5vja918"
access_type = 0
public_network = 3
}
```
```

Import

ckafka route can be imported using the id, e.g.

```
terraform import tencentcloud_ckafka_route.example ckafka-8j4rodrr#135912
```
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package tco_test

import (
tcacctest "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/acctest"
"testing"

tcacctest "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/acctest"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)

Expand Down
16 changes: 12 additions & 4 deletions website/docs/r/ckafka_route.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ Provides a resource to create a ckafka route
## Example Usage

```hcl
resource "tencentcloud_ckafka_route" "route" {
instance_id = "ckafka-xxxxxx"
resource "tencentcloud_ckafka_route" "example" {
instance_id = "ckafka-8j4rodrr"
vip_type = 3
vpc_id = "vpc-xxxxxx"
subnet_id = "subnet-xxxxxx"
vpc_id = "vpc-axrsmmrv"
subnet_id = "subnet-j5vja918"
access_type = 0
public_network = 3
}
Expand Down Expand Up @@ -55,3 +55,11 @@ In addition to all arguments above, the following attributes are exported:
* `vport` - Virtual port.


## Import

ckafka route can be imported using the id, e.g.

```
terraform import tencentcloud_ckafka_route.example ckafka-8j4rodrr#135912
```

Loading