Interface VpnTunnelOption
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
VpnTunnelOption.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:39.597Z")
@Stability(Stable)
public interface VpnTunnelOption
extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
import software.amazon.awscdk.core.*;
SecretValue secretValue;
VpnTunnelOption vpnTunnelOption = VpnTunnelOption.builder()
.preSharedKey("preSharedKey")
.preSharedKeySecret(secretValue)
.tunnelInsideCidr("tunnelInsideCidr")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forVpnTunnelOptionstatic final classAn implementation forVpnTunnelOption -
Method Summary
Modifier and TypeMethodDescriptionstatic VpnTunnelOption.Builderbuilder()default StringDeprecated.default SecretValueThe pre-shared key (PSK) to establish initial authentication between the virtual private gateway and customer gateway.default StringThe range of inside IP addresses for the tunnel.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getTunnelInsideCidr
The range of inside IP addresses for the tunnel.Any specified CIDR blocks must be unique across all VPN connections that use the same virtual private gateway. A size /30 CIDR block from the 169.254.0.0/16 range.
Default: an Amazon generated inside IP CIDR
-
builder
- Returns:
- a
VpnTunnelOption.BuilderofVpnTunnelOption
preSharedKeySecretinstead