Determines what type of NAT provider to create, either NAT gateways or NAT instance.
|configured||Return list of gateways spawned by the provider.|
Return list of gateways spawned by the provider.
|configure||Called by the VPC to configure NAT.|
|configure||Configures subnet with the gateway.|
|static gateway()||Use NAT Gateways to provide NAT services for your VPC.|
|static instance(props)||Use NAT instances to provide NAT services for your VPC.|
public configureNat(options: ConfigureNatOptions): void
Called by the VPC to configure NAT.
public configureSubnet(subnet: PrivateSubnet): void
Configures subnet with the gateway.
public static gateway(): NatProvider
Use NAT Gateways to provide NAT services for your VPC.
NAT gateways are managed by AWS.
public static instance(props: NatInstanceProps): NatProvider
Use NAT instances to provide NAT services for your VPC.
NAT instances are managed by you, but in return allow more configuration.
Be aware that instances created using this provider will not be automatically replaced if they are stopped for any reason. You should implement your own NatProvider based on AutoScaling groups if you need that.