Class EgressOnlyInternetGateway
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.ec2.alpha.EgressOnlyInternetGateway
- All Implemented Interfaces:
IResource,IRouteTarget,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:49.791Z")
@Stability(Experimental)
public class EgressOnlyInternetGateway
extends Resource
implements IRouteTarget
(experimental) Creates 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));
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class(experimental) A fluent builder forEgressOnlyInternetGateway.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.alpha.IRouteTarget
IRouteTarget.Jsii$Default, IRouteTarget.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String(experimental) Uniquely identifies this class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEgressOnlyInternetGateway(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedEgressOnlyInternetGateway(software.amazon.jsii.JsiiObjectRef objRef) EgressOnlyInternetGateway(software.constructs.Construct scope, String id, EgressOnlyInternetGatewayProps props) -
Method Summary
Modifier and TypeMethodDescription(experimental) The egress-only internet gateway CFN resource.(experimental) The ID of the route target.(experimental) The type of router used in the route.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
-
-
Constructor Details
-
EgressOnlyInternetGateway
protected EgressOnlyInternetGateway(software.amazon.jsii.JsiiObjectRef objRef) -
EgressOnlyInternetGateway
protected EgressOnlyInternetGateway(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
EgressOnlyInternetGateway
@Stability(Experimental) public EgressOnlyInternetGateway(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull EgressOnlyInternetGatewayProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
getResource
(experimental) The egress-only internet gateway CFN resource. -
getRouterTargetId
(experimental) The ID of the route target.- Specified by:
getRouterTargetIdin interfaceIRouteTarget
-
getRouterType
(experimental) The type of router used in the route.- Specified by:
getRouterTypein interfaceIRouteTarget
-