Show / Hide Table of Contents

Enum VpnConnectionType

The VPN connection type.

Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum VpnConnectionType
Syntax (vb)
Public Enum VpnConnectionType
Remarks

ExampleMetadata: infused

Examples
var stack = new Stack();
            var myVpc = new VpcV2(this, "Vpc");
            var vpnGateway = myVpc.EnableVpnGatewayV2(new VPNGatewayV2Options {
                VpnRoutePropagation = new [] { new SubnetSelection { SubnetType = SubnetType.PUBLIC } },
                Type = VpnConnectionType.IPSEC_1
            });

            var routeTable = new RouteTable(stack, "routeTable", new RouteTableProps {
                Vpc = myVpc
            });

            new Route(stack, "route", new RouteProps {
                Destination = "172.31.0.0/24",
                Target = new Dictionary<string, IRouteTarget?> { { "gateway", vpnGateway } },
                RouteTable = routeTable
            });

Synopsis

Fields

DUMMY

Dummy member TODO: remove once https://github.com/aws/jsii/issues/231 is fixed.

IPSEC_1

The IPsec 1 VPN connection type.

Fields

Name Description
DUMMY

Dummy member TODO: remove once https://github.com/aws/jsii/issues/231 is fixed.

IPSEC_1

The IPsec 1 VPN connection type.

Back to top Generated by DocFX