published on Thursday, Sep 3, 2026 by Volcengine
published on Thursday, Sep 3, 2026 by Volcengine
The associated forwarding resource of the Transit Router is used to associate a network instance connection (Transit Router Attachment) with a specified Transit Router route table (Route Table). Once associated, traffic from the network instance connection will be forwarded according to the route table.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
const example = new volcenginecc.transitrouter.TransitRouterAttachmentToRouteTable("example", {
transitRouterAttachmentId: "attachment_id-xxxx",
transitRouterRouteTableId: "route_table_id-xxxx",
});
import pulumi
import pulumi_volcenginecc as volcenginecc
example = volcenginecc.transitrouter.TransitRouterAttachmentToRouteTable("example",
transit_router_attachment_id="attachment_id-xxxx",
transit_router_route_table_id="route_table_id-xxxx")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/transitrouter"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := transitrouter.NewTransitRouterAttachmentToRouteTable(ctx, "example", &transitrouter.TransitRouterAttachmentToRouteTableArgs{
TransitRouterAttachmentId: pulumi.String("attachment_id-xxxx"),
TransitRouterRouteTableId: pulumi.String("route_table_id-xxxx"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
return await Deployment.RunAsync(() =>
{
var example = new Volcenginecc.Transitrouter.TransitRouterAttachmentToRouteTable("example", new()
{
TransitRouterAttachmentId = "attachment_id-xxxx",
TransitRouterRouteTableId = "route_table_id-xxxx",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.volcengine.volcenginecc.transitrouter.TransitRouterAttachmentToRouteTable;
import com.volcengine.volcenginecc.transitrouter.TransitRouterAttachmentToRouteTableArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new TransitRouterAttachmentToRouteTable("example", TransitRouterAttachmentToRouteTableArgs.builder()
.transitRouterAttachmentId("attachment_id-xxxx")
.transitRouterRouteTableId("route_table_id-xxxx")
.build());
}
}
resources:
example:
type: volcenginecc:transitrouter:TransitRouterAttachmentToRouteTable
properties:
transitRouterAttachmentId: attachment_id-xxxx
transitRouterRouteTableId: route_table_id-xxxx
pulumi {
required_providers {
volcenginecc = {
source = "pulumi/volcenginecc"
}
}
}
resource "volcenginecc_transitrouter_transitrouterattachmenttoroutetable" "example" {
transit_router_attachment_id = "attachment_id-xxxx"
transit_router_route_table_id = "route_table_id-xxxx"
}
Create TransitRouterAttachmentToRouteTable Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TransitRouterAttachmentToRouteTable(name: string, args: TransitRouterAttachmentToRouteTableArgs, opts?: CustomResourceOptions);@overload
def TransitRouterAttachmentToRouteTable(resource_name: str,
args: TransitRouterAttachmentToRouteTableArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TransitRouterAttachmentToRouteTable(resource_name: str,
opts: Optional[ResourceOptions] = None,
transit_router_attachment_id: Optional[str] = None,
transit_router_route_table_id: Optional[str] = None)func NewTransitRouterAttachmentToRouteTable(ctx *Context, name string, args TransitRouterAttachmentToRouteTableArgs, opts ...ResourceOption) (*TransitRouterAttachmentToRouteTable, error)public TransitRouterAttachmentToRouteTable(string name, TransitRouterAttachmentToRouteTableArgs args, CustomResourceOptions? opts = null)
public TransitRouterAttachmentToRouteTable(String name, TransitRouterAttachmentToRouteTableArgs args)
public TransitRouterAttachmentToRouteTable(String name, TransitRouterAttachmentToRouteTableArgs args, CustomResourceOptions options)
type: volcenginecc:transitrouter:TransitRouterAttachmentToRouteTable
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "volcenginecc_transitrouter_transit_router_attachment_to_route_table" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args TransitRouterAttachmentToRouteTableArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TransitRouterAttachmentToRouteTableArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TransitRouterAttachmentToRouteTableArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TransitRouterAttachmentToRouteTableArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TransitRouterAttachmentToRouteTableArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var transitRouterAttachmentToRouteTableResource = new Volcenginecc.Transitrouter.TransitRouterAttachmentToRouteTable("transitRouterAttachmentToRouteTableResource", new()
{
TransitRouterAttachmentId = "string",
TransitRouterRouteTableId = "string",
});
example, err := transitrouter.NewTransitRouterAttachmentToRouteTable(ctx, "transitRouterAttachmentToRouteTableResource", &transitrouter.TransitRouterAttachmentToRouteTableArgs{
TransitRouterAttachmentId: pulumi.String("string"),
TransitRouterRouteTableId: pulumi.String("string"),
})
resource "volcenginecc_transitrouter_transit_router_attachment_to_route_table" "transitRouterAttachmentToRouteTableResource" {
lifecycle {
create_before_destroy = true
}
transit_router_attachment_id = "string"
transit_router_route_table_id = "string"
}
var transitRouterAttachmentToRouteTableResource = new TransitRouterAttachmentToRouteTable("transitRouterAttachmentToRouteTableResource", TransitRouterAttachmentToRouteTableArgs.builder()
.transitRouterAttachmentId("string")
.transitRouterRouteTableId("string")
.build());
transit_router_attachment_to_route_table_resource = volcenginecc.transitrouter.TransitRouterAttachmentToRouteTable("transitRouterAttachmentToRouteTableResource",
transit_router_attachment_id="string",
transit_router_route_table_id="string")
const transitRouterAttachmentToRouteTableResource = new volcenginecc.transitrouter.TransitRouterAttachmentToRouteTable("transitRouterAttachmentToRouteTableResource", {
transitRouterAttachmentId: "string",
transitRouterRouteTableId: "string",
});
type: volcenginecc:transitrouter:TransitRouterAttachmentToRouteTable
properties:
transitRouterAttachmentId: string
transitRouterRouteTableId: string
TransitRouterAttachmentToRouteTable Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The TransitRouterAttachmentToRouteTable resource accepts the following input properties:
- Transit
Router stringAttachment Id - ID of the network instance connection. You can call APIs such as DescribeTransitRouterVpcAttachments, DescribeTransitRouterVpnAttachments, DescribeTransitRouterDirectConnectGatewayAttachments, and DescribeTransitRouterPeerAttachments to obtain the ID of the corresponding type of network instance connection.
- Transit
Router stringRoute Table Id - ID of the route table associated with the Transit Router instance. You can call the DescribeTransitRouterRouteTables API to obtain the TR route table ID.
- Transit
Router stringAttachment Id - ID of the network instance connection. You can call APIs such as DescribeTransitRouterVpcAttachments, DescribeTransitRouterVpnAttachments, DescribeTransitRouterDirectConnectGatewayAttachments, and DescribeTransitRouterPeerAttachments to obtain the ID of the corresponding type of network instance connection.
- Transit
Router stringRoute Table Id - ID of the route table associated with the Transit Router instance. You can call the DescribeTransitRouterRouteTables API to obtain the TR route table ID.
- transit_
router_ stringattachment_ id - ID of the network instance connection. You can call APIs such as DescribeTransitRouterVpcAttachments, DescribeTransitRouterVpnAttachments, DescribeTransitRouterDirectConnectGatewayAttachments, and DescribeTransitRouterPeerAttachments to obtain the ID of the corresponding type of network instance connection.
- transit_
router_ stringroute_ table_ id - ID of the route table associated with the Transit Router instance. You can call the DescribeTransitRouterRouteTables API to obtain the TR route table ID.
- transit
Router StringAttachment Id - ID of the network instance connection. You can call APIs such as DescribeTransitRouterVpcAttachments, DescribeTransitRouterVpnAttachments, DescribeTransitRouterDirectConnectGatewayAttachments, and DescribeTransitRouterPeerAttachments to obtain the ID of the corresponding type of network instance connection.
- transit
Router StringRoute Table Id - ID of the route table associated with the Transit Router instance. You can call the DescribeTransitRouterRouteTables API to obtain the TR route table ID.
- transit
Router stringAttachment Id - ID of the network instance connection. You can call APIs such as DescribeTransitRouterVpcAttachments, DescribeTransitRouterVpnAttachments, DescribeTransitRouterDirectConnectGatewayAttachments, and DescribeTransitRouterPeerAttachments to obtain the ID of the corresponding type of network instance connection.
- transit
Router stringRoute Table Id - ID of the route table associated with the Transit Router instance. You can call the DescribeTransitRouterRouteTables API to obtain the TR route table ID.
- transit_
router_ strattachment_ id - ID of the network instance connection. You can call APIs such as DescribeTransitRouterVpcAttachments, DescribeTransitRouterVpnAttachments, DescribeTransitRouterDirectConnectGatewayAttachments, and DescribeTransitRouterPeerAttachments to obtain the ID of the corresponding type of network instance connection.
- transit_
router_ strroute_ table_ id - ID of the route table associated with the Transit Router instance. You can call the DescribeTransitRouterRouteTables API to obtain the TR route table ID.
- transit
Router StringAttachment Id - ID of the network instance connection. You can call APIs such as DescribeTransitRouterVpcAttachments, DescribeTransitRouterVpnAttachments, DescribeTransitRouterDirectConnectGatewayAttachments, and DescribeTransitRouterPeerAttachments to obtain the ID of the corresponding type of network instance connection.
- transit
Router StringRoute Table Id - ID of the route table associated with the Transit Router instance. You can call the DescribeTransitRouterRouteTables API to obtain the TR route table ID.
Outputs
All input properties are implicitly available as output properties. Additionally, the TransitRouterAttachmentToRouteTable resource produces the following output properties:
Look up Existing TransitRouterAttachmentToRouteTable Resource
Get an existing TransitRouterAttachmentToRouteTable resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: TransitRouterAttachmentToRouteTableState, opts?: CustomResourceOptions): TransitRouterAttachmentToRouteTable@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
status: Optional[str] = None,
transit_router_attachment_id: Optional[str] = None,
transit_router_route_table_id: Optional[str] = None) -> TransitRouterAttachmentToRouteTablefunc GetTransitRouterAttachmentToRouteTable(ctx *Context, name string, id IDInput, state *TransitRouterAttachmentToRouteTableState, opts ...ResourceOption) (*TransitRouterAttachmentToRouteTable, error)public static TransitRouterAttachmentToRouteTable Get(string name, Input<string> id, TransitRouterAttachmentToRouteTableState? state, CustomResourceOptions? opts = null)public static TransitRouterAttachmentToRouteTable get(String name, Output<String> id, TransitRouterAttachmentToRouteTableState state, CustomResourceOptions options)resources: _: type: volcenginecc:transitrouter:TransitRouterAttachmentToRouteTable get: id: ${id}import {
to = volcenginecc_transitrouter_transit_router_attachment_to_route_table.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Status string
- Status of the associated forwarding. Possible values: Available (可用), Creating (创建中), Pending (配置中), Deleting (删除中).
- Transit
Router stringAttachment Id - ID of the network instance connection. You can call APIs such as DescribeTransitRouterVpcAttachments, DescribeTransitRouterVpnAttachments, DescribeTransitRouterDirectConnectGatewayAttachments, and DescribeTransitRouterPeerAttachments to obtain the ID of the corresponding type of network instance connection.
- Transit
Router stringRoute Table Id - ID of the route table associated with the Transit Router instance. You can call the DescribeTransitRouterRouteTables API to obtain the TR route table ID.
- Status string
- Status of the associated forwarding. Possible values: Available (可用), Creating (创建中), Pending (配置中), Deleting (删除中).
- Transit
Router stringAttachment Id - ID of the network instance connection. You can call APIs such as DescribeTransitRouterVpcAttachments, DescribeTransitRouterVpnAttachments, DescribeTransitRouterDirectConnectGatewayAttachments, and DescribeTransitRouterPeerAttachments to obtain the ID of the corresponding type of network instance connection.
- Transit
Router stringRoute Table Id - ID of the route table associated with the Transit Router instance. You can call the DescribeTransitRouterRouteTables API to obtain the TR route table ID.
- status string
- Status of the associated forwarding. Possible values: Available (可用), Creating (创建中), Pending (配置中), Deleting (删除中).
- transit_
router_ stringattachment_ id - ID of the network instance connection. You can call APIs such as DescribeTransitRouterVpcAttachments, DescribeTransitRouterVpnAttachments, DescribeTransitRouterDirectConnectGatewayAttachments, and DescribeTransitRouterPeerAttachments to obtain the ID of the corresponding type of network instance connection.
- transit_
router_ stringroute_ table_ id - ID of the route table associated with the Transit Router instance. You can call the DescribeTransitRouterRouteTables API to obtain the TR route table ID.
- status String
- Status of the associated forwarding. Possible values: Available (可用), Creating (创建中), Pending (配置中), Deleting (删除中).
- transit
Router StringAttachment Id - ID of the network instance connection. You can call APIs such as DescribeTransitRouterVpcAttachments, DescribeTransitRouterVpnAttachments, DescribeTransitRouterDirectConnectGatewayAttachments, and DescribeTransitRouterPeerAttachments to obtain the ID of the corresponding type of network instance connection.
- transit
Router StringRoute Table Id - ID of the route table associated with the Transit Router instance. You can call the DescribeTransitRouterRouteTables API to obtain the TR route table ID.
- status string
- Status of the associated forwarding. Possible values: Available (可用), Creating (创建中), Pending (配置中), Deleting (删除中).
- transit
Router stringAttachment Id - ID of the network instance connection. You can call APIs such as DescribeTransitRouterVpcAttachments, DescribeTransitRouterVpnAttachments, DescribeTransitRouterDirectConnectGatewayAttachments, and DescribeTransitRouterPeerAttachments to obtain the ID of the corresponding type of network instance connection.
- transit
Router stringRoute Table Id - ID of the route table associated with the Transit Router instance. You can call the DescribeTransitRouterRouteTables API to obtain the TR route table ID.
- status str
- Status of the associated forwarding. Possible values: Available (可用), Creating (创建中), Pending (配置中), Deleting (删除中).
- transit_
router_ strattachment_ id - ID of the network instance connection. You can call APIs such as DescribeTransitRouterVpcAttachments, DescribeTransitRouterVpnAttachments, DescribeTransitRouterDirectConnectGatewayAttachments, and DescribeTransitRouterPeerAttachments to obtain the ID of the corresponding type of network instance connection.
- transit_
router_ strroute_ table_ id - ID of the route table associated with the Transit Router instance. You can call the DescribeTransitRouterRouteTables API to obtain the TR route table ID.
- status String
- Status of the associated forwarding. Possible values: Available (可用), Creating (创建中), Pending (配置中), Deleting (删除中).
- transit
Router StringAttachment Id - ID of the network instance connection. You can call APIs such as DescribeTransitRouterVpcAttachments, DescribeTransitRouterVpnAttachments, DescribeTransitRouterDirectConnectGatewayAttachments, and DescribeTransitRouterPeerAttachments to obtain the ID of the corresponding type of network instance connection.
- transit
Router StringRoute Table Id - ID of the route table associated with the Transit Router instance. You can call the DescribeTransitRouterRouteTables API to obtain the TR route table ID.
Import
$ pulumi import volcenginecc:transitrouter/transitRouterAttachmentToRouteTable:TransitRouterAttachmentToRouteTable example "transit_router_route_table_id|transit_router_attachment_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
published on Thursday, Sep 3, 2026 by Volcengine