@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.524Z") @Stability(value=Stable) public interface VpnConnectionOptions extends software.amazon.jsii.JsiiSerializable
// Example automatically generated from non-compiling source. May contain errors.
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()
The ASN of the customer gateway.
|
String |
getIp()
The ip address of the customer gateway.
|
default List<String> |
getStaticRoutes()
The static routes to be routed from the VPN gateway to the customer gateway.
|
default List<VpnTunnelOption> |
getTunnelOptions()
The tunnel options for the VPN connection.
|
@Stability(value=Stable) @NotNull String getIp()
@Stability(value=Stable) @Nullable default Number getAsn()
Default: 65000
@Stability(value=Stable) @Nullable default List<String> getStaticRoutes()
Default: Dynamic routing (BGP)
@Stability(value=Stable) @Nullable default List<VpnTunnelOption> getTunnelOptions()
At most two elements (one per tunnel). Duplicates not allowed.
Default: Amazon generated tunnel options
@Stability(value=Stable) static VpnConnectionOptions.Builder builder()
VpnConnectionOptions.Builder of VpnConnectionOptionsCopyright © 2022. All rights reserved.