Interface VPNGatewayV2Options
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
VPNGatewayV2Props
- All Known Implementing Classes:
VPNGatewayV2Options.Jsii$Proxy,VPNGatewayV2Props.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:49.838Z")
@Stability(Experimental)
public interface VPNGatewayV2Options
extends software.amazon.jsii.JsiiSerializable
(experimental) Options to define VPNGatewayV2 for VPC.
Example:
Stack stack = new Stack();
VpcV2 myVpc = new VpcV2(this, "Vpc");
VPNGatewayV2 vpnGateway = myVpc.enableVpnGatewayV2(VPNGatewayV2Options.builder()
.vpnRoutePropagation(List.of(SubnetSelection.builder().subnetType(SubnetType.PUBLIC).build()))
.type(VpnConnectionType.IPSEC_1)
.build());
RouteTable routeTable = RouteTable.Builder.create(stack, "routeTable")
.vpc(myVpc)
.build();
Route.Builder.create(stack, "route")
.destination("172.31.0.0/24")
.target(Map.of("gateway", vpnGateway))
.routeTable(routeTable)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forVPNGatewayV2Optionsstatic final classAn implementation forVPNGatewayV2Options -
Method Summary
Modifier and TypeMethodDescriptionstatic VPNGatewayV2Options.Builderbuilder()default Number(experimental) The private Autonomous System Number (ASN) for the Amazon side of a BGP session.getType()(experimental) The type of VPN connection the virtual private gateway supports.default String(experimental) The resource name of the VPN gateway.default List<SubnetSelection> (experimental) Subnets where the route propagation should be added.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getType
(experimental) The type of VPN connection the virtual private gateway supports.- See Also:
-
getAmazonSideAsn
(experimental) The private Autonomous System Number (ASN) for the Amazon side of a BGP session.Default: - no ASN set for BGP session
-
getVpnGatewayName
(experimental) The resource name of the VPN gateway.Default: - resource provisioned without any name
-
getVpnRoutePropagation
(experimental) Subnets where the route propagation should be added.Default: - no propogation for routes
-
builder
- Returns:
- a
VPNGatewayV2Options.BuilderofVPNGatewayV2Options
-