VpnConnectionOptions Struct
Example
ts
// Across all tunnels in the account/region
const allDataOut = ec2.VpnConnection.metricAllTunnelDataOut();
// For a specific vpn connection
const vpnConnection = vpc.addVpnConnection('Dynamic', {
ip: '1.2.3.4'
});
const state = vpnConnection.metricTunnelState();
Properties
The ASN of the customer gateway.
The ip address of the customer gateway.
staticRoutesstring[]static_routestyping.List[str]staticRoutesList<String>StaticRoutesstring[]StaticRoutes*[]*string= Dynamic routing (BGP)#The static routes to be routed from the VPN gateway to the customer gateway.
tunnelOptionsVpnTunnelOption[]tunnel_optionstyping.List[VpnTunnelOption]tunnelOptionsList<VpnTunnelOption>TunnelOptionsVpnTunnelOption[]TunnelOptions*[]VpnTunnelOption= Amazon generated tunnel options#The tunnel options for the VPN connection.
At most two elements (one per tunnel). Duplicates not allowed.