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-12-06T14:43:18.080Z") @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();
 
  • Method Details

    • getIp

      @Stability(Stable) @NotNull String getIp()
      The ip address of the customer gateway.
    • getAsn

      @Stability(Stable) @Nullable default Number getAsn()
      The ASN of the customer gateway.

      Default: 65000

    • getStaticRoutes

      @Stability(Stable) @Nullable default List<String> getStaticRoutes()
      The static routes to be routed from the VPN gateway to the customer gateway.

      Default: Dynamic routing (BGP)

    • getTunnelOptions

      @Stability(Stable) @Nullable default List<VpnTunnelOption> getTunnelOptions()
      The tunnel options for the VPN connection.

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

      Default: Amazon generated tunnel options

    • builder

      @Stability(Stable) static VpnConnectionOptions.Builder builder()
      Returns:
      a VpnConnectionOptions.Builder of VpnConnectionOptions