published on Friday, Mar 27, 2026 by tencentcloudstack
published on Friday, Mar 27, 2026 by tencentcloudstack
Provides a resource to create a VPC replace routes with route policy config
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.VpcReplaceRoutesWithRoutePolicyConfig("example", {
routeTableId: "rtb-olsbhnyc",
routes: [
{
routeItemId: "rti-araogi5t",
forceMatchPolicy: true,
},
{
routeItemId: "rti-kiyt72op",
forceMatchPolicy: true,
},
],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.VpcReplaceRoutesWithRoutePolicyConfig("example",
route_table_id="rtb-olsbhnyc",
routes=[
{
"route_item_id": "rti-araogi5t",
"force_match_policy": True,
},
{
"route_item_id": "rti-kiyt72op",
"force_match_policy": True,
},
])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewVpcReplaceRoutesWithRoutePolicyConfig(ctx, "example", &tencentcloud.VpcReplaceRoutesWithRoutePolicyConfigArgs{
RouteTableId: pulumi.String("rtb-olsbhnyc"),
Routes: tencentcloud.VpcReplaceRoutesWithRoutePolicyConfigRouteArray{
&tencentcloud.VpcReplaceRoutesWithRoutePolicyConfigRouteArgs{
RouteItemId: pulumi.String("rti-araogi5t"),
ForceMatchPolicy: pulumi.Bool(true),
},
&tencentcloud.VpcReplaceRoutesWithRoutePolicyConfigRouteArgs{
RouteItemId: pulumi.String("rti-kiyt72op"),
ForceMatchPolicy: pulumi.Bool(true),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.VpcReplaceRoutesWithRoutePolicyConfig("example", new()
{
RouteTableId = "rtb-olsbhnyc",
Routes = new[]
{
new Tencentcloud.Inputs.VpcReplaceRoutesWithRoutePolicyConfigRouteArgs
{
RouteItemId = "rti-araogi5t",
ForceMatchPolicy = true,
},
new Tencentcloud.Inputs.VpcReplaceRoutesWithRoutePolicyConfigRouteArgs
{
RouteItemId = "rti-kiyt72op",
ForceMatchPolicy = true,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.VpcReplaceRoutesWithRoutePolicyConfig;
import com.pulumi.tencentcloud.VpcReplaceRoutesWithRoutePolicyConfigArgs;
import com.pulumi.tencentcloud.inputs.VpcReplaceRoutesWithRoutePolicyConfigRouteArgs;
import java.util.List;
import java.util.ArrayList;
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 VpcReplaceRoutesWithRoutePolicyConfig("example", VpcReplaceRoutesWithRoutePolicyConfigArgs.builder()
.routeTableId("rtb-olsbhnyc")
.routes(
VpcReplaceRoutesWithRoutePolicyConfigRouteArgs.builder()
.routeItemId("rti-araogi5t")
.forceMatchPolicy(true)
.build(),
VpcReplaceRoutesWithRoutePolicyConfigRouteArgs.builder()
.routeItemId("rti-kiyt72op")
.forceMatchPolicy(true)
.build())
.build());
}
}
resources:
example:
type: tencentcloud:VpcReplaceRoutesWithRoutePolicyConfig
properties:
routeTableId: rtb-olsbhnyc
routes:
- routeItemId: rti-araogi5t
forceMatchPolicy: true
- routeItemId: rti-kiyt72op
forceMatchPolicy: true
Create VpcReplaceRoutesWithRoutePolicyConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcReplaceRoutesWithRoutePolicyConfig(name: string, args: VpcReplaceRoutesWithRoutePolicyConfigArgs, opts?: CustomResourceOptions);@overload
def VpcReplaceRoutesWithRoutePolicyConfig(resource_name: str,
args: VpcReplaceRoutesWithRoutePolicyConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpcReplaceRoutesWithRoutePolicyConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
route_table_id: Optional[str] = None,
routes: Optional[Sequence[VpcReplaceRoutesWithRoutePolicyConfigRouteArgs]] = None,
vpc_replace_routes_with_route_policy_config_id: Optional[str] = None)func NewVpcReplaceRoutesWithRoutePolicyConfig(ctx *Context, name string, args VpcReplaceRoutesWithRoutePolicyConfigArgs, opts ...ResourceOption) (*VpcReplaceRoutesWithRoutePolicyConfig, error)public VpcReplaceRoutesWithRoutePolicyConfig(string name, VpcReplaceRoutesWithRoutePolicyConfigArgs args, CustomResourceOptions? opts = null)
public VpcReplaceRoutesWithRoutePolicyConfig(String name, VpcReplaceRoutesWithRoutePolicyConfigArgs args)
public VpcReplaceRoutesWithRoutePolicyConfig(String name, VpcReplaceRoutesWithRoutePolicyConfigArgs args, CustomResourceOptions options)
type: tencentcloud:VpcReplaceRoutesWithRoutePolicyConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args VpcReplaceRoutesWithRoutePolicyConfigArgs
- 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 VpcReplaceRoutesWithRoutePolicyConfigArgs
- 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 VpcReplaceRoutesWithRoutePolicyConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcReplaceRoutesWithRoutePolicyConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcReplaceRoutesWithRoutePolicyConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
VpcReplaceRoutesWithRoutePolicyConfig 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 VpcReplaceRoutesWithRoutePolicyConfig resource accepts the following input properties:
- Route
Table stringId - Route Table Instance ID.
- Routes
List<Vpc
Replace Routes With Route Policy Config Route> - Routing policy object. requires specifying the unique ID of routing policy (RouteItemId).
- Vpc
Replace stringRoutes With Route Policy Config Id - ID of the resource.
- Route
Table stringId - Route Table Instance ID.
- Routes
[]Vpc
Replace Routes With Route Policy Config Route Args - Routing policy object. requires specifying the unique ID of routing policy (RouteItemId).
- Vpc
Replace stringRoutes With Route Policy Config Id - ID of the resource.
- route
Table StringId - Route Table Instance ID.
- routes
List<Vpc
Replace Routes With Route Policy Config Route> - Routing policy object. requires specifying the unique ID of routing policy (RouteItemId).
- vpc
Replace StringRoutes With Route Policy Config Id - ID of the resource.
- route
Table stringId - Route Table Instance ID.
- routes
Vpc
Replace Routes With Route Policy Config Route[] - Routing policy object. requires specifying the unique ID of routing policy (RouteItemId).
- vpc
Replace stringRoutes With Route Policy Config Id - ID of the resource.
- route_
table_ strid - Route Table Instance ID.
- routes
Sequence[Vpc
Replace Routes With Route Policy Config Route Args] - Routing policy object. requires specifying the unique ID of routing policy (RouteItemId).
- vpc_
replace_ strroutes_ with_ route_ policy_ config_ id - ID of the resource.
- route
Table StringId - Route Table Instance ID.
- routes List<Property Map>
- Routing policy object. requires specifying the unique ID of routing policy (RouteItemId).
- vpc
Replace StringRoutes With Route Policy Config Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcReplaceRoutesWithRoutePolicyConfig resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing VpcReplaceRoutesWithRoutePolicyConfig Resource
Get an existing VpcReplaceRoutesWithRoutePolicyConfig 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?: VpcReplaceRoutesWithRoutePolicyConfigState, opts?: CustomResourceOptions): VpcReplaceRoutesWithRoutePolicyConfig@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
route_table_id: Optional[str] = None,
routes: Optional[Sequence[VpcReplaceRoutesWithRoutePolicyConfigRouteArgs]] = None,
vpc_replace_routes_with_route_policy_config_id: Optional[str] = None) -> VpcReplaceRoutesWithRoutePolicyConfigfunc GetVpcReplaceRoutesWithRoutePolicyConfig(ctx *Context, name string, id IDInput, state *VpcReplaceRoutesWithRoutePolicyConfigState, opts ...ResourceOption) (*VpcReplaceRoutesWithRoutePolicyConfig, error)public static VpcReplaceRoutesWithRoutePolicyConfig Get(string name, Input<string> id, VpcReplaceRoutesWithRoutePolicyConfigState? state, CustomResourceOptions? opts = null)public static VpcReplaceRoutesWithRoutePolicyConfig get(String name, Output<String> id, VpcReplaceRoutesWithRoutePolicyConfigState state, CustomResourceOptions options)resources: _: type: tencentcloud:VpcReplaceRoutesWithRoutePolicyConfig get: 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.
- Route
Table stringId - Route Table Instance ID.
- Routes
List<Vpc
Replace Routes With Route Policy Config Route> - Routing policy object. requires specifying the unique ID of routing policy (RouteItemId).
- Vpc
Replace stringRoutes With Route Policy Config Id - ID of the resource.
- Route
Table stringId - Route Table Instance ID.
- Routes
[]Vpc
Replace Routes With Route Policy Config Route Args - Routing policy object. requires specifying the unique ID of routing policy (RouteItemId).
- Vpc
Replace stringRoutes With Route Policy Config Id - ID of the resource.
- route
Table StringId - Route Table Instance ID.
- routes
List<Vpc
Replace Routes With Route Policy Config Route> - Routing policy object. requires specifying the unique ID of routing policy (RouteItemId).
- vpc
Replace StringRoutes With Route Policy Config Id - ID of the resource.
- route
Table stringId - Route Table Instance ID.
- routes
Vpc
Replace Routes With Route Policy Config Route[] - Routing policy object. requires specifying the unique ID of routing policy (RouteItemId).
- vpc
Replace stringRoutes With Route Policy Config Id - ID of the resource.
- route_
table_ strid - Route Table Instance ID.
- routes
Sequence[Vpc
Replace Routes With Route Policy Config Route Args] - Routing policy object. requires specifying the unique ID of routing policy (RouteItemId).
- vpc_
replace_ strroutes_ with_ route_ policy_ config_ id - ID of the resource.
- route
Table StringId - Route Table Instance ID.
- routes List<Property Map>
- Routing policy object. requires specifying the unique ID of routing policy (RouteItemId).
- vpc
Replace StringRoutes With Route Policy Config Id - ID of the resource.
Supporting Types
VpcReplaceRoutesWithRoutePolicyConfigRoute, VpcReplaceRoutesWithRoutePolicyConfigRouteArgs
- Force
Match boolPolicy - Match the route reception policy tag.
- Route
Item stringId - Route unique policy ID.
- Force
Match boolPolicy - Match the route reception policy tag.
- Route
Item stringId - Route unique policy ID.
- force
Match BooleanPolicy - Match the route reception policy tag.
- route
Item StringId - Route unique policy ID.
- force
Match booleanPolicy - Match the route reception policy tag.
- route
Item stringId - Route unique policy ID.
- force_
match_ boolpolicy - Match the route reception policy tag.
- route_
item_ strid - Route unique policy ID.
- force
Match BooleanPolicy - Match the route reception policy tag.
- route
Item StringId - Route unique policy ID.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
published on Friday, Mar 27, 2026 by tencentcloudstack
