@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)",
date="2023-01-31T18:36:53.568Z")
public interface VpnConnectionOptions
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();
Modifier and Type | Interface and Description |
---|---|
static class |
VpnConnectionOptions.Builder
A builder for
VpnConnectionOptions |
static class |
VpnConnectionOptions.Jsii$Proxy
An implementation for
VpnConnectionOptions |
Modifier and Type | Method and Description |
---|---|
static VpnConnectionOptions.Builder |
builder() |
default java.lang.Number |
getAsn()
The ASN of the customer gateway.
|
java.lang.String |
getIp()
The ip address of the customer gateway.
|
default java.util.List<java.lang.String> |
getStaticRoutes()
The static routes to be routed from the VPN gateway to the customer gateway.
|
default java.util.List<VpnTunnelOption> |
getTunnelOptions()
The tunnel options for the VPN connection.
|
java.lang.String getIp()
default java.lang.Number getAsn()
Default: 65000
default java.util.List<java.lang.String> getStaticRoutes()
Default: Dynamic routing (BGP)
default java.util.List<VpnTunnelOption> getTunnelOptions()
At most two elements (one per tunnel). Duplicates not allowed.
Default: Amazon generated tunnel options
static VpnConnectionOptions.Builder builder()
VpnConnectionOptions.Builder
of VpnConnectionOptions