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.104.0 (build e79254c)",
date="2024-11-22T02:24:00.796Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forVpnConnectionOptions
static final class
An implementation forVpnConnectionOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic VpnConnectionOptions.Builder
builder()
default Number
getAsn()
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.Builder
ofVpnConnectionOptions
-