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());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forEgressOnlyInternetGatewayOptions
static final class
An implementation forEgressOnlyInternetGatewayOptions
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
(experimental) Destination Ipv6 address for EGW route.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
-
getSubnets
(experimental) List of subnets where route to EGW will be added.Default: - no route created
-
builder
-