alicloud logo
Alibaba Cloud v3.34.0, Mar 17 23

alicloud.cen.TransitRouterRouteTable

Provides a CEN transit router route table resource.What is Cen Transit Router Route Table

NOTE: Available in 1.126.0+

Example Usage

Basic Usage

Coming soon!

Coming soon!

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) {
        final var config = ctx.config();
        final var name = config.get("name").orElse("tf-testAccCenTransitRouter");
        var cen = new Instance("cen", InstanceArgs.builder()        
            .description("terraform01")
            .build());

        var defaultTransitRouter = new TransitRouter("defaultTransitRouter", TransitRouterArgs.builder()        
            .name(name)
            .cenId(cen.id())
            .build());

        var defaultTransitRouterRouteTable = new TransitRouterRouteTable("defaultTransitRouterRouteTable", TransitRouterRouteTableArgs.builder()        
            .transitRouterId(defaultTransitRouter.transitRouterId())
            .build());

    }
}

Coming soon!

Coming soon!

configuration:
  name:
    type: string
    default: tf-testAccCenTransitRouter
resources:
  cen:
    type: alicloud:cen:Instance
    properties:
      description: terraform01
  defaultTransitRouter:
    type: alicloud:cen:TransitRouter
    properties:
      name: ${name}
      cenId: ${cen.id}
  defaultTransitRouterRouteTable:
    type: alicloud:cen:TransitRouterRouteTable
    properties:
      transitRouterId: ${defaultTransitRouter.transitRouterId}

Create TransitRouterRouteTable Resource

new TransitRouterRouteTable(name: string, args: TransitRouterRouteTableArgs, opts?: CustomResourceOptions);
@overload
def TransitRouterRouteTable(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            dry_run: Optional[bool] = None,
                            tags: Optional[Mapping[str, Any]] = None,
                            transit_router_id: Optional[str] = None,
                            transit_router_route_table_description: Optional[str] = None,
                            transit_router_route_table_name: Optional[str] = None)
@overload
def TransitRouterRouteTable(resource_name: str,
                            args: TransitRouterRouteTableArgs,
                            opts: Optional[ResourceOptions] = 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.

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.

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

The TransitRouterRouteTable resource accepts the following input properties:

TransitRouterId string

The ID of the transit router.

DryRun bool

The dry run.

Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

TransitRouterRouteTableDescription string

The description of the transit router route table.

TransitRouterRouteTableName string

The name of the transit router route table.

TransitRouterId string

The ID of the transit router.

DryRun bool

The dry run.

Tags map[string]interface{}

A mapping of tags to assign to the resource.

TransitRouterRouteTableDescription string

The description of the transit router route table.

TransitRouterRouteTableName string

The name of the transit router route table.

transitRouterId String

The ID of the transit router.

dryRun Boolean

The dry run.

tags Map<String,Object>

A mapping of tags to assign to the resource.

transitRouterRouteTableDescription String

The description of the transit router route table.

transitRouterRouteTableName String

The name of the transit router route table.

transitRouterId string

The ID of the transit router.

dryRun boolean

The dry run.

tags {[key: string]: any}

A mapping of tags to assign to the resource.

transitRouterRouteTableDescription string

The description of the transit router route table.

transitRouterRouteTableName string

The name of the transit router route table.

transit_router_id str

The ID of the transit router.

dry_run bool

The dry run.

tags Mapping[str, Any]

A mapping of tags to assign to the resource.

transit_router_route_table_description str

The description of the transit router route table.

transit_router_route_table_name str

The name of the transit router route table.

transitRouterId String

The ID of the transit router.

dryRun Boolean

The dry run.

tags Map<Any>

A mapping of tags to assign to the resource.

transitRouterRouteTableDescription String

The description of the transit router route table.

transitRouterRouteTableName String

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.

TransitRouterRouteTableId string

The id of the transit router route table.

TransitRouterRouteTableType string

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.

TransitRouterRouteTableId string

The id of the transit router route table.

TransitRouterRouteTableType string

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.

transitRouterRouteTableId String

The id of the transit router route table.

transitRouterRouteTableType String

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.

transitRouterRouteTableId string

The id of the transit router route table.

transitRouterRouteTableType string

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_route_table_id str

The id of the transit router route table.

transit_router_route_table_type str

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.

transitRouterRouteTableId String

The id of the transit router route table.

transitRouterRouteTableType String

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, Any]] = 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.
The following state arguments are supported:
DryRun bool

The dry run.

Status string

The associating status of the Transit Router.

Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

TransitRouterId string

The ID of the transit router.

TransitRouterRouteTableDescription string

The description of the transit router route table.

TransitRouterRouteTableId string

The id of the transit router route table.

TransitRouterRouteTableName string

The name of the transit router route table.

TransitRouterRouteTableType string

The type of the transit router route table. Valid values: Custom, System.

DryRun bool

The dry run.

Status string

The associating status of the Transit Router.

Tags map[string]interface{}

A mapping of tags to assign to the resource.

TransitRouterId string

The ID of the transit router.

TransitRouterRouteTableDescription string

The description of the transit router route table.

TransitRouterRouteTableId string

The id of the transit router route table.

TransitRouterRouteTableName string

The name of the transit router route table.

TransitRouterRouteTableType string

The type of the transit router route table. Valid values: Custom, System.

dryRun Boolean

The dry run.

status String

The associating status of the Transit Router.

tags Map<String,Object>

A mapping of tags to assign to the resource.

transitRouterId String

The ID of the transit router.

transitRouterRouteTableDescription String

The description of the transit router route table.

transitRouterRouteTableId String

The id of the transit router route table.

transitRouterRouteTableName String

The name of the transit router route table.

transitRouterRouteTableType String

The type of the transit router route table. Valid values: Custom, System.

dryRun boolean

The dry run.

status string

The associating status of the Transit Router.

tags {[key: string]: any}

A mapping of tags to assign to the resource.

transitRouterId string

The ID of the transit router.

transitRouterRouteTableDescription string

The description of the transit router route table.

transitRouterRouteTableId string

The id of the transit router route table.

transitRouterRouteTableName string

The name of the transit router route table.

transitRouterRouteTableType string

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.

tags Mapping[str, Any]

A mapping of tags to assign to the resource.

transit_router_id str

The ID of the transit router.

transit_router_route_table_description str

The description of the transit router route table.

transit_router_route_table_id str

The id of the transit router route table.

transit_router_route_table_name str

The name of the transit router route table.

transit_router_route_table_type str

The type of the transit router route table. Valid values: Custom, System.

dryRun Boolean

The dry run.

status String

The associating status of the Transit Router.

tags Map<Any>

A mapping of tags to assign to the resource.

transitRouterId String

The ID of the transit router.

transitRouterRouteTableDescription String

The description of the transit router route table.

transitRouterRouteTableId String

The id of the transit router route table.

transitRouterRouteTableName String

The name of the transit router route table.

transitRouterRouteTableType String

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-********

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.