Interface VPNGatewayV2Props
- All Superinterfaces:
 software.amazon.jsii.JsiiSerializable,VPNGatewayV2Options
- All Known Implementing Classes:
 VPNGatewayV2Props.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
           date="2025-10-29T11:15:51.460Z")
@Stability(Experimental)
public interface VPNGatewayV2Props
extends software.amazon.jsii.JsiiSerializable, VPNGatewayV2Options
(experimental) Properties to define a VPN gateway.
 
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.alpha.*;
 import software.amazon.awscdk.services.ec2.*;
 Subnet subnet;
 SubnetFilter subnetFilter;
 VpcV2 vpcV2;
 VPNGatewayV2Props vPNGatewayV2Props = VPNGatewayV2Props.builder()
         .type(VpnConnectionType.IPSEC_1)
         .vpc(vpcV2)
         // the properties below are optional
         .amazonSideAsn(123)
         .vpnGatewayName("vpnGatewayName")
         .vpnRoutePropagation(List.of(SubnetSelection.builder()
                 .availabilityZones(List.of("availabilityZones"))
                 .onePerAz(false)
                 .subnetFilters(List.of(subnetFilter))
                 .subnetGroupName("subnetGroupName")
                 .subnets(List.of(subnet))
                 .subnetType(SubnetType.PRIVATE_ISOLATED)
                 .build()))
         .build();
 - 
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forVPNGatewayV2Propsstatic final classAn implementation forVPNGatewayV2Props - 
Method Summary
Modifier and TypeMethodDescriptionstatic VPNGatewayV2Props.Builderbuilder()getVpc()(experimental) The ID of the VPC for which to create the VPN gateway.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.ec2.alpha.VPNGatewayV2Options
getAmazonSideAsn, getType, getVpnGatewayName, getVpnRoutePropagation 
- 
Method Details
- 
getVpc
(experimental) The ID of the VPC for which to create the VPN gateway. - 
builder
- Returns:
 - a 
VPNGatewayV2Props.BuilderofVPNGatewayV2Props 
 
 -