Class VpnConnectionType
The VPN connection type.
Inheritance
System.Object
VpnConnectionType
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class VpnConnectionType : Enum
Syntax (vb)
Public NotInheritable Class VpnConnectionType
Inherits
Enum
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. |
value__ |
Fields
DUMMY
Dummy member TODO: remove once https://github.com/aws/jsii/issues/231 is fixed.
public const VpnConnectionType DUMMY
Field Value
Type | Description |
---|---|
VpnConnectionType |
IPSEC_1
The IPsec 1 VPN connection type.
public const VpnConnectionType IPSEC_1
Field Value
Type | Description |
---|---|
VpnConnectionType |
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |