Skip to content

Commit a9cd0dc

Browse files
committed
add notify routes
1 parent cce4fd1 commit a9cd0dc

File tree

5 files changed

+87
-32
lines changed

5 files changed

+87
-32
lines changed

tencentcloud/provider.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,6 +1246,7 @@ Virtual Private Cloud(VPC)
12461246
tencentcloud_vpc_ipv6_subnet_cidr_block
12471247
tencentcloud_vpc_ipv6_eni_address
12481248
tencentcloud_vpc_local_gateway
1249+
tencentcloud_vpc_notify_routes
12491250
tencentcloud_vpc_resume_snapshot_instance
12501251
tencentcloud_vpc_peer_connect_manager
12511252
tencentcloud_vpc_peer_connect_accept_operation

tencentcloud/services/vpc/resource_tc_vpc_notify_routes.go

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,3 @@
1-
/*
2-
Provides a resource to create a vpc notify_routes
3-
4-
# Example Usage
5-
6-
```hcl
7-
8-
resource "tencentcloud_vpc" "vpc" {
9-
name = "vpc-example"
10-
cidr_block = "10.0.0.0/16"
11-
}
12-
13-
resource "tencentcloud_route_table" "route_table" {
14-
vpc_id = tencentcloud_vpc.vpc.id
15-
name = "tf-example"
16-
}
17-
18-
resource "tencentcloud_vpc_notify_routes" "example" {
19-
route_table_id = tencentcloud_route_table.route_table.id
20-
route_item_ids = ["rti-i8bap903"]
21-
}
22-
23-
```
24-
25-
# Import
26-
27-
vpc notify_routes can be imported using the id, e.g.
28-
29-
```
30-
terraform import tencentcloud_vpc_notify_routes.notify_routes notify_routes_id
31-
```
32-
*/
331
package vpc
342

353
import (
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Provides a resource to create a vpc notify_routes
2+
3+
Example Usage
4+
5+
```hcl
6+
resource "tencentcloud_vpc" "vpc" {
7+
name = "vpc-example"
8+
cidr_block = "10.0.0.0/16"
9+
}
10+
11+
resource "tencentcloud_route_table" "route_table" {
12+
vpc_id = tencentcloud_vpc.vpc.id
13+
name = "tf-example"
14+
}
15+
16+
resource "tencentcloud_vpc_notify_routes" "example" {
17+
route_table_id = tencentcloud_route_table.route_table.id
18+
route_item_ids = ["rti-i8bap903"]
19+
}
20+
```
21+
22+
Import
23+
24+
vpc notify_routes can be imported using the id, e.g.
25+
26+
```
27+
terraform import tencentcloud_vpc_notify_routes.notify_routes route_table_id#route_item_id
28+
```
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
subcategory: "Virtual Private Cloud(VPC)"
3+
layout: "tencentcloud"
4+
page_title: "TencentCloud: tencentcloud_vpc_notify_routes"
5+
sidebar_current: "docs-tencentcloud-resource-vpc_notify_routes"
6+
description: |-
7+
Provides a resource to create a vpc notify_routes
8+
---
9+
10+
# tencentcloud_vpc_notify_routes
11+
12+
Provides a resource to create a vpc notify_routes
13+
14+
## Example Usage
15+
16+
```hcl
17+
resource "tencentcloud_vpc" "vpc" {
18+
name = "vpc-example"
19+
cidr_block = "10.0.0.0/16"
20+
}
21+
22+
resource "tencentcloud_route_table" "route_table" {
23+
vpc_id = tencentcloud_vpc.vpc.id
24+
name = "tf-example"
25+
}
26+
27+
resource "tencentcloud_vpc_notify_routes" "example" {
28+
route_table_id = tencentcloud_route_table.route_table.id
29+
route_item_ids = ["rti-i8bap903"]
30+
}
31+
```
32+
33+
## Argument Reference
34+
35+
The following arguments are supported:
36+
37+
* `route_item_ids` - (Required, Set: [`String`], ForceNew) The unique ID of the routing policy.
38+
* `route_table_id` - (Required, String, ForceNew) The unique ID of the routing table.
39+
40+
## Attributes Reference
41+
42+
In addition to all arguments above, the following attributes are exported:
43+
44+
* `id` - ID of the resource.
45+
* `published_to_vbc` - If published to vbc.
46+
47+
48+
## Import
49+
50+
vpc notify_routes can be imported using the id, e.g.
51+
52+
```
53+
terraform import tencentcloud_vpc_notify_routes.notify_routes route_table_id#route_item_id
54+
```
55+

website/tencentcloud.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6410,6 +6410,9 @@
64106410
<li>
64116411
<a href="/docs/providers/tencentcloud/r/vpc_net_detect.html">tencentcloud_vpc_net_detect</a>
64126412
</li>
6413+
<li>
6414+
<a href="/docs/providers/tencentcloud/r/vpc_notify_routes.html">tencentcloud_vpc_notify_routes</a>
6415+
</li>
64136416
<li>
64146417
<a href="/docs/providers/tencentcloud/r/vpc_peer_connect_accept_operation.html">tencentcloud_vpc_peer_connect_accept_operation</a>
64156418
</li>

0 commit comments

Comments
 (0)