@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:47.116Z") @Stability(value=Experimental) public interface VpnConnectionOptions extends software.amazon.jsii.JsiiSerializable
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 Number |
getAsn()
(experimental) The ASN of the customer gateway.
|
String |
getIp()
(experimental) The ip address of the customer gateway.
|
default List<String> |
getStaticRoutes()
(experimental) The static routes to be routed from the VPN gateway to the customer gateway.
|
default List<VpnTunnelOption> |
getTunnelOptions()
(experimental) The tunnel options for the VPN connection.
|
@Stability(value=Experimental) @NotNull String getIp()
@Stability(value=Experimental) @Nullable default Number getAsn()
Default: 65000
@Stability(value=Experimental) @Nullable default List<String> getStaticRoutes()
Default: Dynamic routing (BGP)
@Stability(value=Experimental) @Nullable default List<VpnTunnelOption> getTunnelOptions()
At most two elements (one per tunnel). Duplicates not allowed.
Default: Amazon generated tunnel options
@Stability(value=Experimental) static VpnConnectionOptions.Builder builder()
VpnConnectionOptions.Builder of VpnConnectionOptionsCopyright © 2022. All rights reserved.