tencentcloud.RouteTableEntryConfig
Explore with Pulumi AI
Provides a resource to create a vpc route table entry config
NOTE: When setting the route item switch, do not use it together with resource
tencentcloud.RouteTableEntry
.
Example Usage
Enable route item
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.RouteTableEntryConfig("example", {
disabled: false,
routeItemId: "rti-4f6efqwn",
routeTableId: "rtb-8425lgjy",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.RouteTableEntryConfig("example",
disabled=False,
route_item_id="rti-4f6efqwn",
route_table_id="rtb-8425lgjy")
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.NewRouteTableEntryConfig(ctx, "example", &tencentcloud.RouteTableEntryConfigArgs{
Disabled: pulumi.Bool(false),
RouteItemId: pulumi.String("rti-4f6efqwn"),
RouteTableId: pulumi.String("rtb-8425lgjy"),
})
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.RouteTableEntryConfig("example", new()
{
Disabled = false,
RouteItemId = "rti-4f6efqwn",
RouteTableId = "rtb-8425lgjy",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.RouteTableEntryConfig;
import com.pulumi.tencentcloud.RouteTableEntryConfigArgs;
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 RouteTableEntryConfig("example", RouteTableEntryConfigArgs.builder()
.disabled(false)
.routeItemId("rti-4f6efqwn")
.routeTableId("rtb-8425lgjy")
.build());
}
}
resources:
example:
type: tencentcloud:RouteTableEntryConfig
properties:
disabled: false
routeItemId: rti-4f6efqwn
routeTableId: rtb-8425lgjy
Disable route item
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.RouteTableEntryConfig("example", {
disabled: true,
routeItemId: "rti-4f6efqwn",
routeTableId: "rtb-8425lgjy",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.RouteTableEntryConfig("example",
disabled=True,
route_item_id="rti-4f6efqwn",
route_table_id="rtb-8425lgjy")
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.NewRouteTableEntryConfig(ctx, "example", &tencentcloud.RouteTableEntryConfigArgs{
Disabled: pulumi.Bool(true),
RouteItemId: pulumi.String("rti-4f6efqwn"),
RouteTableId: pulumi.String("rtb-8425lgjy"),
})
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.RouteTableEntryConfig("example", new()
{
Disabled = true,
RouteItemId = "rti-4f6efqwn",
RouteTableId = "rtb-8425lgjy",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.RouteTableEntryConfig;
import com.pulumi.tencentcloud.RouteTableEntryConfigArgs;
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 RouteTableEntryConfig("example", RouteTableEntryConfigArgs.builder()
.disabled(true)
.routeItemId("rti-4f6efqwn")
.routeTableId("rtb-8425lgjy")
.build());
}
}
resources:
example:
type: tencentcloud:RouteTableEntryConfig
properties:
disabled: true
routeItemId: rti-4f6efqwn
routeTableId: rtb-8425lgjy
Create RouteTableEntryConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RouteTableEntryConfig(name: string, args: RouteTableEntryConfigArgs, opts?: CustomResourceOptions);
@overload
def RouteTableEntryConfig(resource_name: str,
args: RouteTableEntryConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RouteTableEntryConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
disabled: Optional[bool] = None,
route_item_id: Optional[str] = None,
route_table_id: Optional[str] = None,
route_table_entry_config_id: Optional[str] = None)
func NewRouteTableEntryConfig(ctx *Context, name string, args RouteTableEntryConfigArgs, opts ...ResourceOption) (*RouteTableEntryConfig, error)
public RouteTableEntryConfig(string name, RouteTableEntryConfigArgs args, CustomResourceOptions? opts = null)
public RouteTableEntryConfig(String name, RouteTableEntryConfigArgs args)
public RouteTableEntryConfig(String name, RouteTableEntryConfigArgs args, CustomResourceOptions options)
type: tencentcloud:RouteTableEntryConfig
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 RouteTableEntryConfigArgs
- 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 RouteTableEntryConfigArgs
- 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 RouteTableEntryConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RouteTableEntryConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RouteTableEntryConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
RouteTableEntryConfig 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 RouteTableEntryConfig resource accepts the following input properties:
- Disabled bool
- Whether the entry is disabled.
- Route
Item stringId - ID of route table entry.
- Route
Table stringId - Route table ID.
- Route
Table stringEntry Config Id - ID of the resource.
- Disabled bool
- Whether the entry is disabled.
- Route
Item stringId - ID of route table entry.
- Route
Table stringId - Route table ID.
- Route
Table stringEntry Config Id - ID of the resource.
- disabled Boolean
- Whether the entry is disabled.
- route
Item StringId - ID of route table entry.
- route
Table StringId - Route table ID.
- route
Table StringEntry Config Id - ID of the resource.
- disabled boolean
- Whether the entry is disabled.
- route
Item stringId - ID of route table entry.
- route
Table stringId - Route table ID.
- route
Table stringEntry Config Id - ID of the resource.
- disabled bool
- Whether the entry is disabled.
- route_
item_ strid - ID of route table entry.
- route_
table_ strid - Route table ID.
- route_
table_ strentry_ config_ id - ID of the resource.
- disabled Boolean
- Whether the entry is disabled.
- route
Item StringId - ID of route table entry.
- route
Table StringId - Route table ID.
- route
Table StringEntry Config Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the RouteTableEntryConfig 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 RouteTableEntryConfig Resource
Get an existing RouteTableEntryConfig 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?: RouteTableEntryConfigState, opts?: CustomResourceOptions): RouteTableEntryConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
disabled: Optional[bool] = None,
route_item_id: Optional[str] = None,
route_table_entry_config_id: Optional[str] = None,
route_table_id: Optional[str] = None) -> RouteTableEntryConfig
func GetRouteTableEntryConfig(ctx *Context, name string, id IDInput, state *RouteTableEntryConfigState, opts ...ResourceOption) (*RouteTableEntryConfig, error)
public static RouteTableEntryConfig Get(string name, Input<string> id, RouteTableEntryConfigState? state, CustomResourceOptions? opts = null)
public static RouteTableEntryConfig get(String name, Output<String> id, RouteTableEntryConfigState state, CustomResourceOptions options)
resources: _: type: tencentcloud:RouteTableEntryConfig 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.
- Disabled bool
- Whether the entry is disabled.
- Route
Item stringId - ID of route table entry.
- Route
Table stringEntry Config Id - ID of the resource.
- Route
Table stringId - Route table ID.
- Disabled bool
- Whether the entry is disabled.
- Route
Item stringId - ID of route table entry.
- Route
Table stringEntry Config Id - ID of the resource.
- Route
Table stringId - Route table ID.
- disabled Boolean
- Whether the entry is disabled.
- route
Item StringId - ID of route table entry.
- route
Table StringEntry Config Id - ID of the resource.
- route
Table StringId - Route table ID.
- disabled boolean
- Whether the entry is disabled.
- route
Item stringId - ID of route table entry.
- route
Table stringEntry Config Id - ID of the resource.
- route
Table stringId - Route table ID.
- disabled bool
- Whether the entry is disabled.
- route_
item_ strid - ID of route table entry.
- route_
table_ strentry_ config_ id - ID of the resource.
- route_
table_ strid - Route table ID.
- disabled Boolean
- Whether the entry is disabled.
- route
Item StringId - ID of route table entry.
- route
Table StringEntry Config Id - ID of the resource.
- route
Table StringId - Route table ID.
Import
vpc route table entry config can be imported using the id, e.g.
$ pulumi import tencentcloud:index/routeTableEntryConfig:RouteTableEntryConfig example rtb-8425lgjy#rti-4f6efqwn
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.