Class NatGatewayProvider
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ec2.NatProvider
software.amazon.awscdk.services.ec2.NatGatewayProvider
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:35.401Z")
@Stability(Stable)
public class NatGatewayProvider
extends NatProvider
Provider for NAT Gateways.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
NatGatewayProvider natGatewayProvider = NatGatewayProvider.Builder.create()
.eipAllocationIds(List.of("eipAllocationIds"))
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNatGatewayProvider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedNatGatewayProvider(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureNat(ConfigureNatOptions options) Called by the VPC to configure NAT.voidconfigureSubnet(PrivateSubnet subnet) Configures subnet with the gateway.Return list of gateways spawned by the provider.Methods inherited from class software.amazon.awscdk.services.ec2.NatProvider
gateway, gateway, instance, instanceV2Methods 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, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
NatGatewayProvider
protected NatGatewayProvider(software.amazon.jsii.JsiiObjectRef objRef) -
NatGatewayProvider
protected NatGatewayProvider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
NatGatewayProvider
- Parameters:
props-
-
NatGatewayProvider
@Stability(Stable) public NatGatewayProvider()
-
-
Method Details
-
configureNat
Called by the VPC to configure NAT.Don't call this directly, the VPC will call it automatically.
- Specified by:
configureNatin classNatProvider- Parameters:
options- This parameter is required.
-
configureSubnet
Configures subnet with the gateway.Don't call this directly, the VPC will call it automatically.
- Specified by:
configureSubnetin classNatProvider- Parameters:
subnet- This parameter is required.
-
getConfiguredGateways
Return list of gateways spawned by the provider.- Specified by:
getConfiguredGatewaysin classNatProvider
-