Interface VpnConnectionOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
VpnConnectionProps
- All Known Implementing Classes:
VpnConnectionOptions.Jsii$Proxy,VpnConnectionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-12T17:54:12.366Z")
@Stability(Stable)
public interface VpnConnectionOptions
extends software.amazon.jsii.JsiiSerializable
Example:
// Across all tunnels in the account/region
Metric allDataOut = VpnConnection.metricAllTunnelDataOut();
// For a specific vpn connection
VpnConnection vpnConnection = vpc.addVpnConnection("Dynamic", VpnConnectionOptions.builder()
.ip("1.2.3.4")
.build());
Metric state = vpnConnection.metricTunnelState();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forVpnConnectionOptionsstatic final classAn implementation forVpnConnectionOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic VpnConnectionOptions.Builderbuilder()default NumbergetAsn()The ASN of the customer gateway.getIp()The ip address of the customer gateway.The static routes to be routed from the VPN gateway to the customer gateway.default List<VpnTunnelOption> The tunnel options for the VPN connection.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getIp
The ip address of the customer gateway. -
getAsn
The ASN of the customer gateway.Default: 65000
-
getStaticRoutes
The static routes to be routed from the VPN gateway to the customer gateway.Default: Dynamic routing (BGP)
-
getTunnelOptions
The tunnel options for the VPN connection.At most two elements (one per tunnel). Duplicates not allowed.
Default: Amazon generated tunnel options
-
builder
- Returns:
- a
VpnConnectionOptions.BuilderofVpnConnectionOptions
-