Skip to content

feat(vpc): [120562753]support notify routes #2941

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
Nov 6, 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/2941.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:new-resource
tencentcloud_vpc_notify_routes
```
1 change: 1 addition & 0 deletions tencentcloud/provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -1246,6 +1246,7 @@ Virtual Private Cloud(VPC)
tencentcloud_vpc_ipv6_subnet_cidr_block
tencentcloud_vpc_ipv6_eni_address
tencentcloud_vpc_local_gateway
tencentcloud_vpc_notify_routes
tencentcloud_vpc_resume_snapshot_instance
tencentcloud_vpc_peer_connect_manager
tencentcloud_vpc_peer_connect_accept_operation
Expand Down
32 changes: 0 additions & 32 deletions tencentcloud/services/vpc/resource_tc_vpc_notify_routes.go
Original file line number Diff line number Diff line change
@@ -1,35 +1,3 @@
/*
Provides a resource to create a vpc notify_routes

# Example Usage

```hcl

resource "tencentcloud_vpc" "vpc" {
name = "vpc-example"
cidr_block = "10.0.0.0/16"
}

resource "tencentcloud_route_table" "route_table" {
vpc_id = tencentcloud_vpc.vpc.id
name = "tf-example"
}

resource "tencentcloud_vpc_notify_routes" "example" {
route_table_id = tencentcloud_route_table.route_table.id
route_item_ids = ["rti-i8bap903"]
}

```

# Import

vpc notify_routes can be imported using the id, e.g.

```
terraform import tencentcloud_vpc_notify_routes.notify_routes notify_routes_id
```
*/
package vpc

import (
Expand Down
28 changes: 28 additions & 0 deletions tencentcloud/services/vpc/resource_tc_vpc_notify_routes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Provides a resource to create a vpc notify_routes

Example Usage

```hcl
resource "tencentcloud_vpc" "vpc" {
name = "vpc-example"
cidr_block = "10.0.0.0/16"
}

resource "tencentcloud_route_table" "route_table" {
vpc_id = tencentcloud_vpc.vpc.id
name = "tf-example"
}

resource "tencentcloud_vpc_notify_routes" "example" {
route_table_id = tencentcloud_route_table.route_table.id
route_item_ids = ["rti-i8bap903"]
}
```

Import

vpc notify_routes can be imported using the id, e.g.

```
terraform import tencentcloud_vpc_notify_routes.notify_routes route_table_id#route_item_id
```
55 changes: 55 additions & 0 deletions website/docs/r/vpc_notify_routes.html.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
subcategory: "Virtual Private Cloud(VPC)"
layout: "tencentcloud"
page_title: "TencentCloud: tencentcloud_vpc_notify_routes"
sidebar_current: "docs-tencentcloud-resource-vpc_notify_routes"
description: |-
Provides a resource to create a vpc notify_routes
---

# tencentcloud_vpc_notify_routes

Provides a resource to create a vpc notify_routes

## Example Usage

```hcl
resource "tencentcloud_vpc" "vpc" {
name = "vpc-example"
cidr_block = "10.0.0.0/16"
}

resource "tencentcloud_route_table" "route_table" {
vpc_id = tencentcloud_vpc.vpc.id
name = "tf-example"
}

resource "tencentcloud_vpc_notify_routes" "example" {
route_table_id = tencentcloud_route_table.route_table.id
route_item_ids = ["rti-i8bap903"]
}
```

## Argument Reference

The following arguments are supported:

* `route_item_ids` - (Required, Set: [`String`], ForceNew) The unique ID of the routing policy.
* `route_table_id` - (Required, String, ForceNew) The unique ID of the routing table.

## Attributes Reference

In addition to all arguments above, the following attributes are exported:

* `id` - ID of the resource.
* `published_to_vbc` - If published to vbc.


## Import

vpc notify_routes can be imported using the id, e.g.

```
terraform import tencentcloud_vpc_notify_routes.notify_routes route_table_id#route_item_id
```

3 changes: 3 additions & 0 deletions website/tencentcloud.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6410,6 +6410,9 @@
<li>
<a href="/docs/providers/tencentcloud/r/vpc_net_detect.html">tencentcloud_vpc_net_detect</a>
</li>
<li>
<a href="/docs/providers/tencentcloud/r/vpc_notify_routes.html">tencentcloud_vpc_notify_routes</a>
</li>
<li>
<a href="/docs/providers/tencentcloud/r/vpc_peer_connect_accept_operation.html">tencentcloud_vpc_peer_connect_accept_operation</a>
</li>
Expand Down
Loading