Interface InternetGatewayOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
InternetGatewayOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:49.804Z")
@Stability(Experimental)
public interface InternetGatewayOptions
extends software.amazon.jsii.JsiiSerializable
(experimental) Options to define InternetGateway for VPC.
Example:
Stack stack = new Stack();
VpcV2 myVpc = new VpcV2(this, "Vpc");
SubnetV2 subnet = SubnetV2.Builder.create(this, "Subnet")
.vpc(myVpc)
.availabilityZone("eu-west-2a")
.ipv4CidrBlock(new IpCidr("10.0.0.0/24"))
.subnetType(SubnetType.PUBLIC)
.build();
myVpc.addInternetGateway(InternetGatewayOptions.builder()
.ipv4Destination("192.168.0.0/16")
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forInternetGatewayOptionsstatic final classAn implementation forInternetGatewayOptions -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default String(experimental) The resource name of the internet gateway.default String(experimental) Destination Ipv6 address for EGW route.default String(experimental) Destination Ipv6 address for EGW route.default List<SubnetSelection> (experimental) List of subnets where route to IGW will be added.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInternetGatewayName
(experimental) The resource name of the internet gateway.Provided name will be used for tagging
Default: - provisioned without a resource name
-
getIpv4Destination
(experimental) Destination Ipv6 address for EGW route.Default: - '0.0.0.0' all Ipv4 traffic
-
getIpv6Destination
(experimental) Destination Ipv6 address for EGW route.Default: - '::/0' all Ipv6 traffic
-
getSubnets
(experimental) List of subnets where route to IGW will be added.Default: - route created for all subnets with Type `SubnetType.Public`
-
builder
- Returns:
- a
InternetGatewayOptions.BuilderofInternetGatewayOptions
-