Class VpnConnectionOptions
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class VpnConnectionOptions : IVpnConnectionOptions
Syntax (vb)
Public Class VpnConnectionOptions 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()
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();
Properties
Asn
The ASN of the customer gateway.
public double? Asn { get; set; }
Property Value
Remarks
Default: 65000
Ip
The ip address of the customer gateway.
public string Ip { get; set; }
Property Value
Remarks
ExampleMetadata: fixture=with-vpc infused
StaticRoutes
The static routes to be routed from the VPN gateway to the customer gateway.
public string[]? StaticRoutes { get; set; }
Property Value
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