@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-08T20:48:12.703Z") @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.InitializationMode
IConnectable.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, instance
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
protected 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 NatProvider
options
- 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 NatProvider
subnet
- 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.