RouteTableArgs

data class RouteTableArgs(val tags: Output<Map<String, String>>? = null, val transitGatewayId: Output<String>? = null) : ConvertibleToJava<RouteTableArgs>

Manages an EC2 Transit Gateway Route Table.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2transitgateway.RouteTable;
import com.pulumi.aws.ec2transitgateway.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 example = new RouteTable("example", RouteTableArgs.builder()
.transitGatewayId(aws_ec2_transit_gateway.example().id())
.build());
}
}

Import

aws_ec2_transit_gateway_route_table can be imported by using the EC2 Transit Gateway Route Table identifier, e.g.,

$ pulumi import aws:ec2transitgateway/routeTable:RouteTable example tgw-rtb-12345678

Constructors

Link copied to clipboard
constructor(tags: Output<Map<String, String>>? = null, transitGatewayId: Output<String>? = null)

Properties

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

Key-value tags for the EC2 Transit Gateway Route Table. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

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

Identifier of EC2 Transit Gateway.

Functions

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