Class RouterType
Type of router used in route.
Inheritance
System.Object
RouterType
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class RouterType : Enum
Syntax (vb)
Public NotInheritable Class RouterType
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
var vpc = new Vpc(this, "VPC", new VpcProps {
SubnetConfiguration = new [] { new SubnetConfiguration {
SubnetType = SubnetType.PUBLIC,
Name = "Public"
}, new SubnetConfiguration {
SubnetType = SubnetType.PRIVATE_ISOLATED,
Name = "Isolated"
} }
});
((Subnet)vpc.IsolatedSubnets[0]).AddRoute("StaticRoute", new AddRouteOptions {
RouterId = vpc.InternetGatewayId,
RouterType = RouterType.GATEWAY,
DestinationCidrBlock = "8.8.8.8/32"
});
Synopsis
Fields
CARRIER_GATEWAY | Carrier gateway. |
EGRESS_ONLY_INTERNET_GATEWAY | Egress-only Internet Gateway. |
GATEWAY | Internet Gateway. |
INSTANCE | Instance. |
LOCAL_GATEWAY | Local Gateway. |
NAT_GATEWAY | NAT Gateway. |
NETWORK_INTERFACE | Network Interface. |
TRANSIT_GATEWAY | Transit Gateway. |
value__ | |
VPC_ENDPOINT | VPC Endpoint for gateway load balancers. |
VPC_PEERING_CONNECTION | VPC peering connection. |
Fields
CARRIER_GATEWAY
EGRESS_ONLY_INTERNET_GATEWAY
Egress-only Internet Gateway.
public const RouterType EGRESS_ONLY_INTERNET_GATEWAY
Field Value
Type | Description |
---|---|
RouterType |
GATEWAY
INSTANCE
LOCAL_GATEWAY
NAT_GATEWAY
NETWORK_INTERFACE
Network Interface.
public const RouterType NETWORK_INTERFACE
Field Value
Type | Description |
---|---|
RouterType |
TRANSIT_GATEWAY
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |
VPC_ENDPOINT
VPC Endpoint for gateway load balancers.
public const RouterType VPC_ENDPOINT
Field Value
Type | Description |
---|---|
RouterType |
VPC_PEERING_CONNECTION
VPC peering connection.
public const RouterType VPC_PEERING_CONNECTION
Field Value
Type | Description |
---|---|
RouterType |