@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.486Z") @Stability(value=Stable) public class NatInstanceProvider extends NatProvider implements IConnectable
Example:
// Configure the `natGatewayProvider` when defining a Vpc
NatInstanceProvider natGatewayProvider = NatProvider.instance(NatInstanceProps.builder()
.instanceType(new InstanceType("t3.small"))
.build());
Vpc vpc = Vpc.Builder.create(this, "MyVpc")
.natGatewayProvider(natGatewayProvider)
// The 'natGateways' parameter now controls the number of NAT instances
.natGateways(2)
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
NatInstanceProvider.Builder
A fluent builder for
NatInstanceProvider. |
software.amazon.jsii.JsiiObject.InitializationModeIConnectable.Jsii$Default, IConnectable.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
NatInstanceProvider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
NatInstanceProvider(software.amazon.jsii.JsiiObjectRef objRef) |
|
NatInstanceProvider(NatInstanceProps props) |
| Modifier and Type | Method and Description |
|---|---|
void |
configureNat(ConfigureNatOptions options)
Called by the VPC to configure NAT.
|
void |
configureSubnet(PrivateSubnet subnet)
Configures subnet with the gateway.
|
List<GatewayConfig> |
getConfiguredGateways()
Return list of gateways spawned by the provider.
|
Connections |
getConnections()
Manage the Security Groups associated with the NAT instances.
|
ISecurityGroup |
getSecurityGroup()
The Security Group associated with the NAT instances.
|
gateway, gateway, instancejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected NatInstanceProvider(software.amazon.jsii.JsiiObjectRef objRef)
protected NatInstanceProvider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public NatInstanceProvider(@NotNull
NatInstanceProps props)
props - This parameter is required.@Stability(value=Stable)
public void configureNat(@NotNull
ConfigureNatOptions options)
Don't call this directly, the VPC will call it automatically.
configureNat in class NatProvideroptions - This parameter is required.@Stability(value=Stable)
public void configureSubnet(@NotNull
PrivateSubnet subnet)
Don't call this directly, the VPC will call it automatically.
configureSubnet in class NatProvidersubnet - This parameter is required.@Stability(value=Stable) @NotNull public List<GatewayConfig> getConfiguredGateways()
getConfiguredGateways in class NatProvider@Stability(value=Stable) @NotNull public Connections getConnections()
getConnections in interface IConnectable@Stability(value=Stable) @NotNull public ISecurityGroup getSecurityGroup()
Copyright © 2022. All rights reserved.