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.104.0 (build e79254c)", date="2024-11-22T02:24:11.447Z") @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();