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.104.0 (build e79254c)",
date="2024-11-22T02:24:00.739Z")
@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();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IConnectable
IConnectable.Jsii$Default, IConnectable.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionDeprecated.protected
NatInstanceProvider
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) Deprecated.protected
NatInstanceProvider
(software.amazon.jsii.JsiiObjectRef objRef) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
configureNat
(ConfigureNatOptions options) Deprecated.void
configureSubnet
(PrivateSubnet subnet) Deprecated.Deprecated.Deprecated.Deprecated.Methods inherited from class software.amazon.awscdk.services.ec2.NatProvider
gateway, gateway, instance, instanceV2
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
NatInstanceProvider
protected NatInstanceProvider(software.amazon.jsii.JsiiObjectRef objRef) Deprecated. -
NatInstanceProvider
protected NatInstanceProvider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) Deprecated. -
NatInstanceProvider
Deprecated.- Parameters:
props
- This parameter is required.
-
-
Method Details
-
configureNat
Deprecated.(deprecated) Called by the VPC to configure NAT.Don't call this directly, the VPC will call it automatically.
- Specified by:
configureNat
in classNatProvider
- Parameters:
options
- This parameter is required.
-
configureSubnet
Deprecated.(deprecated) Configures subnet with the gateway.Don't call this directly, the VPC will call it automatically.
- Specified by:
configureSubnet
in classNatProvider
- Parameters:
subnet
- This parameter is required.
-
getConfiguredGateways
Deprecated.(deprecated) Return list of gateways spawned by the provider.- Specified by:
getConfiguredGateways
in classNatProvider
-
getConnections
Deprecated.(deprecated) Manage the Security Groups associated with the NAT instances.- Specified by:
getConnections
in interfaceIConnectable
-
getSecurityGroup
Deprecated.(deprecated) The Security Group associated with the NAT instances.
-