Show / Hide Table of Contents

Class VpnConnectionOptions

Inheritance
object
VpnConnectionOptions
Implements
IVpnConnectionOptions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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

double?

Remarks

Default: 65000

Ip

The ip address of the customer gateway.

public string Ip { get; set; }
Property Value

string

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

IVpnTunnelOption[]

Remarks

At most two elements (one per tunnel). Duplicates not allowed.

Default: Amazon generated tunnel options

Implements

IVpnConnectionOptions
Back to top Generated by DocFX