Determines what type of NAT provider to create, either NAT gateways or NAT instance.
|configure||Called by the VPC to configure NAT.|
|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 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.