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.84.0 (build 5404dcf)", date="2023-06-19T16:30:39.593Z") @Stability(Stable) public interface VpnConnectionOptions extends software.amazon.jsii.JsiiSerializable
Example:

 Vpc vpc = Vpc.Builder.create(this, "MyVpc")
         .vpnConnections(Map.of(
                 "dynamic", VpnConnectionOptions.builder() // Dynamic routing (BGP)
                         .ip("1.2.3.4").build(),
                 "static", VpnConnectionOptions.builder() // Static routing
                         .ip("4.5.6.7")
                         .staticRoutes(List.of("192.168.10.0/24", "192.168.20.0/24")).build()))
         .build();
 
  • 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