Interface RouteTableProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
RouteTableProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:51.430Z")
@Stability(Experimental)
public interface RouteTableProps
extends software.amazon.jsii.JsiiSerializable
(experimental) Properties to define a route table.
Example:
Stack stack = new Stack();
VpcV2 myVpc = new VpcV2(this, "Vpc");
VPNGatewayV2 vpnGateway = myVpc.enableVpnGatewayV2(VPNGatewayV2Options.builder()
.vpnRoutePropagation(List.of(SubnetSelection.builder().subnetType(SubnetType.PUBLIC).build()))
.type(VpnConnectionType.IPSEC_1)
.build());
RouteTable routeTable = RouteTable.Builder.create(stack, "routeTable")
.vpc(myVpc)
.build();
Route.Builder.create(stack, "route")
.destination("172.31.0.0/24")
.target(Map.of("gateway", vpnGateway))
.routeTable(routeTable)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forRouteTablePropsstatic final classAn implementation forRouteTableProps -
Method Summary
Modifier and TypeMethodDescriptionstatic RouteTableProps.Builderbuilder()default String(experimental) The resource name of the route table.getVpc()(experimental) The ID of the VPC.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getVpc
(experimental) The ID of the VPC. -
getRouteTableName
(experimental) The resource name of the route table.Default: - provisioned without a route table name
-
builder
- Returns:
- a
RouteTableProps.BuilderofRouteTableProps
-