alicloud.cen.TransitRouterRouteTable
Explore with Pulumi AI
Provides a CEN transit router route table resource.What is Cen Transit Router Route Table
NOTE: Available since v1.126.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.cen.Instance("example", {
cenInstanceName: "tf_example",
description: "an example for cen",
});
const exampleTransitRouter = new alicloud.cen.TransitRouter("example", {
transitRouterName: "tf_example",
cenId: example.id,
});
const exampleTransitRouterRouteTable = new alicloud.cen.TransitRouterRouteTable("example", {transitRouterId: exampleTransitRouter.transitRouterId});
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.cen.Instance("example",
cen_instance_name="tf_example",
description="an example for cen")
example_transit_router = alicloud.cen.TransitRouter("example",
transit_router_name="tf_example",
cen_id=example.id)
example_transit_router_route_table = alicloud.cen.TransitRouterRouteTable("example", transit_router_id=example_transit_router.transit_router_id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := cen.NewInstance(ctx, "example", &cen.InstanceArgs{
CenInstanceName: pulumi.String("tf_example"),
Description: pulumi.String("an example for cen"),
})
if err != nil {
return err
}
exampleTransitRouter, err := cen.NewTransitRouter(ctx, "example", &cen.TransitRouterArgs{
TransitRouterName: pulumi.String("tf_example"),
CenId: example.ID(),
})
if err != nil {
return err
}
_, err = cen.NewTransitRouterRouteTable(ctx, "example", &cen.TransitRouterRouteTableArgs{
TransitRouterId: exampleTransitRouter.TransitRouterId,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = new AliCloud.Cen.Instance("example", new()
{
CenInstanceName = "tf_example",
Description = "an example for cen",
});
var exampleTransitRouter = new AliCloud.Cen.TransitRouter("example", new()
{
TransitRouterName = "tf_example",
CenId = example.Id,
});
var exampleTransitRouterRouteTable = new AliCloud.Cen.TransitRouterRouteTable("example", new()
{
TransitRouterId = exampleTransitRouter.TransitRouterId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cen.Instance;
import com.pulumi.alicloud.cen.InstanceArgs;
import com.pulumi.alicloud.cen.TransitRouter;
import com.pulumi.alicloud.cen.TransitRouterArgs;
import com.pulumi.alicloud.cen.TransitRouterRouteTable;
import com.pulumi.alicloud.cen.TransitRouterRouteTableArgs;
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 Instance("example", InstanceArgs.builder()
.cenInstanceName("tf_example")
.description("an example for cen")
.build());
var exampleTransitRouter = new TransitRouter("exampleTransitRouter", TransitRouterArgs.builder()
.transitRouterName("tf_example")
.cenId(example.id())
.build());
var exampleTransitRouterRouteTable = new TransitRouterRouteTable("exampleTransitRouterRouteTable", TransitRouterRouteTableArgs.builder()
.transitRouterId(exampleTransitRouter.transitRouterId())
.build());
}
}
resources:
example:
type: alicloud:cen:Instance
properties:
cenInstanceName: tf_example
description: an example for cen
exampleTransitRouter:
type: alicloud:cen:TransitRouter
name: example
properties:
transitRouterName: tf_example
cenId: ${example.id}
exampleTransitRouterRouteTable:
type: alicloud:cen:TransitRouterRouteTable
name: example
properties:
transitRouterId: ${exampleTransitRouter.transitRouterId}
Create TransitRouterRouteTable Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TransitRouterRouteTable(name: string, args: TransitRouterRouteTableArgs, opts?: CustomResourceOptions);
@overload
def TransitRouterRouteTable(resource_name: str,
args: TransitRouterRouteTableArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TransitRouterRouteTable(resource_name: str,
opts: Optional[ResourceOptions] = None,
transit_router_id: Optional[str] = None,
dry_run: Optional[bool] = None,
tags: Optional[Mapping[str, str]] = None,
transit_router_route_table_description: Optional[str] = None,
transit_router_route_table_name: Optional[str] = None)
func NewTransitRouterRouteTable(ctx *Context, name string, args TransitRouterRouteTableArgs, opts ...ResourceOption) (*TransitRouterRouteTable, error)
public TransitRouterRouteTable(string name, TransitRouterRouteTableArgs args, CustomResourceOptions? opts = null)
public TransitRouterRouteTable(String name, TransitRouterRouteTableArgs args)
public TransitRouterRouteTable(String name, TransitRouterRouteTableArgs args, CustomResourceOptions options)
type: alicloud:cen:TransitRouterRouteTable
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 TransitRouterRouteTableArgs
- 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 TransitRouterRouteTableArgs
- 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 TransitRouterRouteTableArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TransitRouterRouteTableArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TransitRouterRouteTableArgs
- 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 transitRouterRouteTableResource = new AliCloud.Cen.TransitRouterRouteTable("transitRouterRouteTableResource", new()
{
TransitRouterId = "string",
DryRun = false,
Tags =
{
{ "string", "string" },
},
TransitRouterRouteTableDescription = "string",
TransitRouterRouteTableName = "string",
});
example, err := cen.NewTransitRouterRouteTable(ctx, "transitRouterRouteTableResource", &cen.TransitRouterRouteTableArgs{
TransitRouterId: pulumi.String("string"),
DryRun: pulumi.Bool(false),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
TransitRouterRouteTableDescription: pulumi.String("string"),
TransitRouterRouteTableName: pulumi.String("string"),
})
var transitRouterRouteTableResource = new TransitRouterRouteTable("transitRouterRouteTableResource", TransitRouterRouteTableArgs.builder()
.transitRouterId("string")
.dryRun(false)
.tags(Map.of("string", "string"))
.transitRouterRouteTableDescription("string")
.transitRouterRouteTableName("string")
.build());
transit_router_route_table_resource = alicloud.cen.TransitRouterRouteTable("transitRouterRouteTableResource",
transit_router_id="string",
dry_run=False,
tags={
"string": "string",
},
transit_router_route_table_description="string",
transit_router_route_table_name="string")
const transitRouterRouteTableResource = new alicloud.cen.TransitRouterRouteTable("transitRouterRouteTableResource", {
transitRouterId: "string",
dryRun: false,
tags: {
string: "string",
},
transitRouterRouteTableDescription: "string",
transitRouterRouteTableName: "string",
});
type: alicloud:cen:TransitRouterRouteTable
properties:
dryRun: false
tags:
string: string
transitRouterId: string
transitRouterRouteTableDescription: string
transitRouterRouteTableName: string
TransitRouterRouteTable 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 TransitRouterRouteTable resource accepts the following input properties:
- Transit
Router stringId - The ID of the transit router.
- Dry
Run bool - The dry run.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Transit
Router stringRoute Table Description - The description of the transit router route table.
- Transit
Router stringRoute Table Name - The name of the transit router route table.
- Transit
Router stringId - The ID of the transit router.
- Dry
Run bool - The dry run.
- map[string]string
- A mapping of tags to assign to the resource.
- Transit
Router stringRoute Table Description - The description of the transit router route table.
- Transit
Router stringRoute Table Name - The name of the transit router route table.
- transit
Router StringId - The ID of the transit router.
- dry
Run Boolean - The dry run.
- Map<String,String>
- A mapping of tags to assign to the resource.
- transit
Router StringRoute Table Description - The description of the transit router route table.
- transit
Router StringRoute Table Name - The name of the transit router route table.
- transit
Router stringId - The ID of the transit router.
- dry
Run boolean - The dry run.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- transit
Router stringRoute Table Description - The description of the transit router route table.
- transit
Router stringRoute Table Name - The name of the transit router route table.
- transit_
router_ strid - The ID of the transit router.
- dry_
run bool - The dry run.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- transit_
router_ strroute_ table_ description - The description of the transit router route table.
- transit_
router_ strroute_ table_ name - The name of the transit router route table.
- transit
Router StringId - The ID of the transit router.
- dry
Run Boolean - The dry run.
- Map<String>
- A mapping of tags to assign to the resource.
- transit
Router StringRoute Table Description - The description of the transit router route table.
- transit
Router StringRoute Table Name - The name of the transit router route table.
Outputs
All input properties are implicitly available as output properties. Additionally, the TransitRouterRouteTable resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The associating status of the Transit Router.
- Transit
Router stringRoute Table Id - The id of the transit router route table.
- Transit
Router stringRoute Table Type - The type of the transit router route table. Valid values:
Custom
,System
.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The associating status of the Transit Router.
- Transit
Router stringRoute Table Id - The id of the transit router route table.
- Transit
Router stringRoute Table Type - The type of the transit router route table. Valid values:
Custom
,System
.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- The associating status of the Transit Router.
- transit
Router StringRoute Table Id - The id of the transit router route table.
- transit
Router StringRoute Table Type - The type of the transit router route table. Valid values:
Custom
,System
.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- The associating status of the Transit Router.
- transit
Router stringRoute Table Id - The id of the transit router route table.
- transit
Router stringRoute Table Type - The type of the transit router route table. Valid values:
Custom
,System
.
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- The associating status of the Transit Router.
- transit_
router_ strroute_ table_ id - The id of the transit router route table.
- transit_
router_ strroute_ table_ type - The type of the transit router route table. Valid values:
Custom
,System
.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- The associating status of the Transit Router.
- transit
Router StringRoute Table Id - The id of the transit router route table.
- transit
Router StringRoute Table Type - The type of the transit router route table. Valid values:
Custom
,System
.
Look up Existing TransitRouterRouteTable Resource
Get an existing TransitRouterRouteTable 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?: TransitRouterRouteTableState, opts?: CustomResourceOptions): TransitRouterRouteTable
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
dry_run: Optional[bool] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
transit_router_id: Optional[str] = None,
transit_router_route_table_description: Optional[str] = None,
transit_router_route_table_id: Optional[str] = None,
transit_router_route_table_name: Optional[str] = None,
transit_router_route_table_type: Optional[str] = None) -> TransitRouterRouteTable
func GetTransitRouterRouteTable(ctx *Context, name string, id IDInput, state *TransitRouterRouteTableState, opts ...ResourceOption) (*TransitRouterRouteTable, error)
public static TransitRouterRouteTable Get(string name, Input<string> id, TransitRouterRouteTableState? state, CustomResourceOptions? opts = null)
public static TransitRouterRouteTable get(String name, Output<String> id, TransitRouterRouteTableState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Dry
Run bool - The dry run.
- Status string
- The associating status of the Transit Router.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Transit
Router stringId - The ID of the transit router.
- Transit
Router stringRoute Table Description - The description of the transit router route table.
- Transit
Router stringRoute Table Id - The id of the transit router route table.
- Transit
Router stringRoute Table Name - The name of the transit router route table.
- Transit
Router stringRoute Table Type - The type of the transit router route table. Valid values:
Custom
,System
.
- Dry
Run bool - The dry run.
- Status string
- The associating status of the Transit Router.
- map[string]string
- A mapping of tags to assign to the resource.
- Transit
Router stringId - The ID of the transit router.
- Transit
Router stringRoute Table Description - The description of the transit router route table.
- Transit
Router stringRoute Table Id - The id of the transit router route table.
- Transit
Router stringRoute Table Name - The name of the transit router route table.
- Transit
Router stringRoute Table Type - The type of the transit router route table. Valid values:
Custom
,System
.
- dry
Run Boolean - The dry run.
- status String
- The associating status of the Transit Router.
- Map<String,String>
- A mapping of tags to assign to the resource.
- transit
Router StringId - The ID of the transit router.
- transit
Router StringRoute Table Description - The description of the transit router route table.
- transit
Router StringRoute Table Id - The id of the transit router route table.
- transit
Router StringRoute Table Name - The name of the transit router route table.
- transit
Router StringRoute Table Type - The type of the transit router route table. Valid values:
Custom
,System
.
- dry
Run boolean - The dry run.
- status string
- The associating status of the Transit Router.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- transit
Router stringId - The ID of the transit router.
- transit
Router stringRoute Table Description - The description of the transit router route table.
- transit
Router stringRoute Table Id - The id of the transit router route table.
- transit
Router stringRoute Table Name - The name of the transit router route table.
- transit
Router stringRoute Table Type - The type of the transit router route table. Valid values:
Custom
,System
.
- dry_
run bool - The dry run.
- status str
- The associating status of the Transit Router.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- transit_
router_ strid - The ID of the transit router.
- transit_
router_ strroute_ table_ description - The description of the transit router route table.
- transit_
router_ strroute_ table_ id - The id of the transit router route table.
- transit_
router_ strroute_ table_ name - The name of the transit router route table.
- transit_
router_ strroute_ table_ type - The type of the transit router route table. Valid values:
Custom
,System
.
- dry
Run Boolean - The dry run.
- status String
- The associating status of the Transit Router.
- Map<String>
- A mapping of tags to assign to the resource.
- transit
Router StringId - The ID of the transit router.
- transit
Router StringRoute Table Description - The description of the transit router route table.
- transit
Router StringRoute Table Id - The id of the transit router route table.
- transit
Router StringRoute Table Name - The name of the transit router route table.
- transit
Router StringRoute Table Type - The type of the transit router route table. Valid values:
Custom
,System
.
Import
CEN transit router route table can be imported using the id, e.g.
$ pulumi import alicloud:cen/transitRouterRouteTable:TransitRouterRouteTable default tr-*********:vtb-********
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.