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.104.0 (build e79254c)", date="2024-11-15T10:24:58.435Z") @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();
 
  • Constructor Details

    • NatGatewayProvider

      protected NatGatewayProvider(software.amazon.jsii.JsiiObjectRef objRef)
    • NatGatewayProvider

      protected NatGatewayProvider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • NatGatewayProvider

      @Stability(Stable) public NatGatewayProvider(@Nullable NatGatewayProps props)
      Parameters:
      props -
    • NatGatewayProvider

      @Stability(Stable) public NatGatewayProvider()
  • Method Details

    • configureNat

      @Stability(Stable) public void configureNat(@NotNull ConfigureNatOptions options)
      Called by the VPC to configure NAT.

      Don't call this directly, the VPC will call it automatically.

      Specified by:
      configureNat in class NatProvider
      Parameters:
      options - This parameter is required.
    • configureSubnet

      @Stability(Stable) public void configureSubnet(@NotNull PrivateSubnet subnet)
      Configures subnet with the gateway.

      Don't call this directly, the VPC will call it automatically.

      Specified by:
      configureSubnet in class NatProvider
      Parameters:
      subnet - This parameter is required.
    • getConfiguredGateways

      @Stability(Stable) @NotNull public List<GatewayConfig> getConfiguredGateways()
      Return list of gateways spawned by the provider.
      Specified by:
      getConfiguredGateways in class NatProvider