Interface EgressOnlyInternetGatewayOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EgressOnlyInternetGatewayOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:49.792Z")
@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());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forEgressOnlyInternetGatewayOptionsstatic final classAn implementation forEgressOnlyInternetGatewayOptions -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default String(experimental) Destination Ipv6 address for EGW route.default String(experimental) The resource name of the egress-only internet gateway.default List<SubnetSelection> (experimental) List of subnets where route to EGW will be added.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDestination
(experimental) Destination Ipv6 address for EGW route.Default: - '::/0' all Ipv6 traffic
-
getEgressOnlyInternetGatewayName
(experimental) The resource name of the egress-only internet gateway.Provided name will be used for tagging
Default: - no name tag associated and provisioned without a resource name
-
getSubnets
(experimental) List of subnets where route to EGW will be added.Default: - no route created
-
builder
-