Interface InternetGatewayOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
InternetGatewayOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-15T10:25:09.183Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forInternetGatewayOptions
static final class
An implementation forInternetGatewayOptions
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
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
-
builder
- Returns:
- a
InternetGatewayOptions.Builder
ofInternetGatewayOptions
-