Interface EgressOnlyInternetGatewayProps

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

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-13T21:17:43.019Z") @Stability(Experimental) public interface EgressOnlyInternetGatewayProps extends software.amazon.jsii.JsiiSerializable
(experimental) Properties to define an egress-only internet gateway.

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();
 EgressOnlyInternetGateway eigw = EgressOnlyInternetGateway.Builder.create(this, "EIGW")
         .vpc(myVpc)
         .build();
 RouteTable routeTable = RouteTable.Builder.create(this, "RouteTable")
         .vpc(myVpc)
         .build();
 routeTable.addRoute("EIGW", "::/0", Map.of("gateway", eigw));