Interface VPNGatewayV2Props
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,VPNGatewayV2Options
- All Known Implementing Classes:
VPNGatewayV2Props.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-15T10:25:09.211Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forVPNGatewayV2Props
static final class
An implementation forVPNGatewayV2Props
-
Method Summary
Modifier and TypeMethodDescriptionstatic VPNGatewayV2Props.Builder
builder()
getVpc()
(experimental) The ID of the VPC for which to create the VPN gateway.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
Methods 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.Builder
ofVPNGatewayV2Props
-