RouterType Enum
Type of router used in route.
Example
ts
const vpc = new ec2.Vpc(this, "VPC", {
subnetConfiguration: [{
subnetType: ec2.SubnetType.PUBLIC,
name: 'Public',
},{
subnetType: ec2.SubnetType.PRIVATE_ISOLATED,
name: 'Isolated',
}]
});
(vpc.isolatedSubnets[0] as ec2.Subnet).addRoute("StaticRoute", {
routerId: vpc.internetGatewayId!,
routerType: ec2.RouterType.GATEWAY,
destinationCidrBlock: "8.8.8.8/32",
})
Members
| Member | Description |
|---|---|
CARRIER_GATEWAY | Carrier gateway. |
EGRESS_ONLY_INTERNET_GATEWAY | Egress-only Internet Gateway. |
GATEWAY | Internet Gateway or Virtual Private Gateway. |
INSTANCE | Instance. |
LOCAL_GATEWAY | Local Gateway. |
NAT_GATEWAY | NAT Gateway. |
NETWORK_INTERFACE | Network Interface. |
TRANSIT_GATEWAY | Transit Gateway. |
VPC_PEERING_CONNECTION | VPC peering connection. |
VPC_ENDPOINT | VPC Endpoint for gateway load balancers. |
CORE_NETWORK | AWS Network Manager Core Network. |
Referenced by
AddRouteOptions.routerTyperouter_typerouterTypeRouterTypeRouterTypeEgressOnlyInternetGateway.routerTyperouter_typerouterTypeRouterTypeRouterTypeInternetGateway.routerTyperouter_typerouterTypeRouterTypeRouterTypeIRouteTarget.routerTyperouter_typerouterTypeRouterTypeRouterTypeNatGateway.routerTyperouter_typerouterTypeRouterTypeRouterTypeRoute.targetRouterTypetarget_router_typetargetRouterTypeTargetRouterTypeTargetRouterTypeTransitGateway.routerTyperouter_typerouterTypeRouterTypeRouterTypeVPCPeeringConnection.routerTyperouter_typerouterTypeRouterTypeRouterTypeVPNGatewayV2.routerTyperouter_typerouterTypeRouterTypeRouterType