RouteTable

class RouteTable : KotlinCustomResource

Provides a VPC Route Table resource. Currently, customized route tables are available in most regions apart from China (Beijing), China (Hangzhou), and China (Shenzhen) regions. For information about VPC Route Table and how to use it, see What is Route Table.

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) {
final var config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
var defaultVpc = new Network("defaultVpc", NetworkArgs.builder()
.vpcName(name)
.build());
var default_ = new RouteTable("default", RouteTableArgs.builder()
.description("test-description")
.vpcId(defaultVpc.id())
.routeTableName(name)
.associateType("VSwitch")
.build());
}
}

Import

VPC Route Table can be imported using the id, e.g.

$ pulumi import alicloud:vpc/routeTable:RouteTable example <id>

Properties

Link copied to clipboard
val associateType: Output<String>

The type of cloud resource that is bound to the routing table. Value:

Link copied to clipboard
val createTime: Output<String>

The creation time of the routing table.

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

Description of the routing table.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val resourceGroupId: Output<String>

Resource group ID.

Link copied to clipboard
val routeTableName: Output<String>

The name of the routing table.

Link copied to clipboard
val status: Output<String>

Routing table state.

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

The tag.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val vpcId: Output<String>

The ID of VPC. The following arguments will be discarded. Please use new fields as soon as possible: