Class NatInstanceProvider

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ec2.NatProvider
software.amazon.awscdk.services.ec2.NatInstanceProvider
All Implemented Interfaces:
IConnectable, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:16.094Z") @Stability(Deprecated) @Deprecated public class NatInstanceProvider extends NatProvider implements IConnectable
Deprecated.
use NatInstanceProviderV2. NatInstanceProvider is deprecated since the instance image used has reached EOL on Dec 31 2023
(deprecated) NAT provider which uses NAT Instances.

Example:

 NatInstanceProvider natInstanceProvider = NatProvider.instance(NatInstanceProps.builder()
         .instanceType(InstanceType.of(InstanceClass.T4G, InstanceSize.LARGE))
         .machineImage(new AmazonLinuxImage())
         .creditSpecification(CpuCredits.UNLIMITED)
         .build());
 Vpc.Builder.create(this, "VPC")
         .natGatewayProvider(natInstanceProvider)
         .build();
 

  • Constructor Details

    • NatInstanceProvider

      protected NatInstanceProvider(software.amazon.jsii.JsiiObjectRef objRef)
      Deprecated.
    • NatInstanceProvider

      protected NatInstanceProvider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
      Deprecated.
    • NatInstanceProvider

      @Stability(Deprecated) @Deprecated public NatInstanceProvider(@NotNull NatInstanceProps props)
      Deprecated.
      Parameters:
      props - This parameter is required.
  • Method Details

    • configureNat

      @Stability(Deprecated) @Deprecated public void configureNat(@NotNull ConfigureNatOptions options)
      Deprecated.
      (deprecated) 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(Deprecated) @Deprecated public void configureSubnet(@NotNull PrivateSubnet subnet)
      Deprecated.
      (deprecated) 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(Deprecated) @Deprecated @NotNull public List<GatewayConfig> getConfiguredGateways()
      Deprecated.
      (deprecated) Return list of gateways spawned by the provider.
      Specified by:
      getConfiguredGateways in class NatProvider
    • getConnections

      @Stability(Deprecated) @Deprecated @NotNull public Connections getConnections()
      Deprecated.
      (deprecated) Manage the Security Groups associated with the NAT instances.
      Specified by:
      getConnections in interface IConnectable
    • getSecurityGroup

      @Stability(Deprecated) @Deprecated @NotNull public ISecurityGroup getSecurityGroup()
      Deprecated.
      (deprecated) The Security Group associated with the NAT instances.