Interface EgressOnlyInternetGatewayOptions

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
EgressOnlyInternetGatewayOptions.Jsii$Proxy

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:24:11.409Z") @Stability(Experimental) public interface EgressOnlyInternetGatewayOptions extends software.amazon.jsii.JsiiSerializable
(experimental) Options to define EgressOnlyInternetGateway for VPC.

Example:

 Stack stack = new Stack();
 VpcV2 myVpc = VpcV2.Builder.create(this, "Vpc")
         .primaryAddressBlock(IpAddresses.ipv4("10.1.0.0/16"))
         .secondaryAddressBlocks(List.of(IpAddresses.amazonProvidedIpv6(SecondaryAddressProps.builder()
                 .cidrBlockName("AmazonProvided")
                 .build())))
         .build();
 RouteTable routeTable = RouteTable.Builder.create(this, "RouteTable")
         .vpc(myVpc)
         .build();
 SubnetV2 subnet = SubnetV2.Builder.create(this, "Subnet")
         .vpc(myVpc)
         .availabilityZone("eu-west-2a")
         .ipv4CidrBlock(new IpCidr("10.0.0.0/24"))
         .ipv6CidrBlock(new IpCidr("2001:db8:1::/64"))
         .subnetType(SubnetType.PRIVATE)
         .build();
 myVpc.addEgressOnlyInternetGateway(EgressOnlyInternetGatewayOptions.builder()
         .subnets(List.of(SubnetSelection.builder().subnetType(SubnetType.PRIVATE).build()))
         .destination("::/60")
         .build());