Class VpnConnectionOptions
Inheritance
System.Object
VpnConnectionOptions
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public class VpnConnectionOptions : Object, IVpnConnectionOptions
Syntax (vb)
Public Class VpnConnectionOptions
Inherits Object
Implements IVpnConnectionOptions
Remarks
ExampleMetadata: infused
Examples
var vpc = new Vpc(this, "MyVpc", new VpcProps {
VpnConnections = new Dictionary<string, VpnConnectionOptions> {
{ "dynamic", new VpnConnectionOptions { // Dynamic routing (BGP)
Ip = "1.2.3.4" } },
{ "static", new VpnConnectionOptions { // Static routing
Ip = "4.5.6.7",
StaticRoutes = new [] { "192.168.10.0/24", "192.168.20.0/24" } } }
}
});
Synopsis
Constructors
VpnConnectionOptions() |
Properties
Asn | The ASN of the customer gateway. |
Ip | The ip address of the customer gateway. |
StaticRoutes | The static routes to be routed from the VPN gateway to the customer gateway. |
TunnelOptions | The tunnel options for the VPN connection. |
Constructors
VpnConnectionOptions()
public VpnConnectionOptions()
Properties
Asn
The ASN of the customer gateway.
public Nullable<double> Asn { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Default: 65000
Ip
The ip address of the customer gateway.
public string Ip { get; set; }
Property Value
System.String
StaticRoutes
The static routes to be routed from the VPN gateway to the customer gateway.
public string[] StaticRoutes { get; set; }
Property Value
System.String[]
Remarks
Default: Dynamic routing (BGP)
TunnelOptions
The tunnel options for the VPN connection.
public IVpnTunnelOption[] TunnelOptions { get; set; }
Property Value
Remarks
At most two elements (one per tunnel). Duplicates not allowed.
Default: Amazon generated tunnel options