RouteTableArgs

data class RouteTableArgs(val associateType: Output<String>? = null, val description: Output<String>? = null, val name: Output<String>? = null, val routeTableName: Output<String>? = null, val tags: Output<Map<String, Any>>? = null, val vpcId: Output<String>? = null) : ConvertibleToJava<RouteTableArgs>

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.RouteTable;
import com.pulumi.alicloud.vpc.RouteTableArgs;
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 fooNetwork = new Network("fooNetwork", NetworkArgs.builder()
.cidrBlock("172.16.0.0/12")
.vpcName("vpc-example-name")
.build());
var fooRouteTable = new RouteTable("fooRouteTable", RouteTableArgs.builder()
.vpcId(fooNetwork.id())
.routeTableName("route-table-example-name")
.description("route-table-example-description")
.build());
}
}

Import

The route table can be imported using the id, e.g.

$ pulumi import alicloud:vpc/routeTable:RouteTable foo vtb-abc123456

Constructors

Link copied to clipboard
fun RouteTableArgs(associateType: Output<String>? = null, description: Output<String>? = null, name: Output<String>? = null, routeTableName: Output<String>? = null, tags: Output<Map<String, Any>>? = null, vpcId: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): RouteTableArgs

Properties

Link copied to clipboard
val associateType: Output<String>? = null

The type of routing table created. Valid values are VSwitch and Gateway

Link copied to clipboard
val description: Output<String>? = null

The description of the route table instance.

Link copied to clipboard
val name: Output<String>? = null

Field name has been deprecated from provider version 1.119.1. New field route_table_name instead.

Link copied to clipboard
val routeTableName: Output<String>? = null

The name of the route table.

Link copied to clipboard
val tags: Output<Map<String, Any>>? = null

A mapping of tags to assign to the resource.

Link copied to clipboard
val vpcId: Output<String>? = null

The vpc_id of the route table, the field can't be changed.