Class VpnConnectionOptions
Inheritance
System.Object
VpnConnectionOptions
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class VpnConnectionOptions : Object, IVpnConnectionOptions
Syntax (vb)
Public Class VpnConnectionOptions
Inherits Object
Implements IVpnConnectionOptions
Remarks
ExampleMetadata: fixture=with-vpc infused
Examples
// Across all tunnels in the account/region
var allDataOut = VpnConnection.MetricAllTunnelDataOut();
// For a specific vpn connection
var vpnConnection = vpc.AddVpnConnection("Dynamic", new VpnConnectionOptions {
Ip = "1.2.3.4"
});
var state = vpnConnection.MetricTunnelState();
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