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.103.1 (build bef2dea)", date="2024-09-11T18:01:14.969Z") @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