Show / Hide Table of Contents

Enum RouterType

Type of router used in route.

Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum RouterType
Syntax (vb)
Public Enum RouterType
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.

CORE_NETWORK

AWS Network Manager Core Network.

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.

VPC_ENDPOINT

VPC Endpoint for gateway load balancers.

VPC_PEERING_CONNECTION

VPC peering connection.

Fields

Name Description
CARRIER_GATEWAY

Carrier gateway.

CORE_NETWORK

AWS Network Manager Core Network.

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.

VPC_ENDPOINT

VPC Endpoint for gateway load balancers.

VPC_PEERING_CONNECTION

VPC peering connection.

Back to top Generated by DocFX