Interface VpnConnectionProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,VpnConnectionOptions
- All Known Implementing Classes:
VpnConnectionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:38.373Z")
@Stability(Stable)
public interface VpnConnectionProps
extends software.amazon.jsii.JsiiSerializable, VpnConnectionOptions
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.ec2.*;
SecretValue secretValue;
Vpc vpc;
VpnConnectionProps vpnConnectionProps = VpnConnectionProps.builder()
.ip("ip")
.vpc(vpc)
// the properties below are optional
.asn(123)
.staticRoutes(List.of("staticRoutes"))
.tunnelOptions(List.of(VpnTunnelOption.builder()
.preSharedKey("preSharedKey")
.preSharedKeySecret(secretValue)
.tunnelInsideCidr("tunnelInsideCidr")
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forVpnConnectionPropsstatic final classAn implementation forVpnConnectionProps -
Method Summary
Modifier and TypeMethodDescriptionstatic VpnConnectionProps.Builderbuilder()getVpc()The VPC to connect to.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.ec2.VpnConnectionOptions
getAsn, getIp, getStaticRoutes, getTunnelOptions
-
Method Details
-
getVpc
The VPC to connect to. -
builder
- Returns:
- a
VpnConnectionProps.BuilderofVpnConnectionProps
-