Interface RegionalNatGatewayProviderProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
RegionalNatGatewayProviderProps.Jsii$Proxy
Regional NAT Gateways provide automatic multi-AZ redundancy with a single gateway that scales across availability zones.
Example:
CfnEIP eip = new CfnEIP(this, "NatEip");
Vpc.Builder.create(this, "Vpc1")
.natGatewayProvider(NatProvider.regionalGateway(RegionalNatGatewayProviderProps.builder()
.eip(eip)
.build()))
.build();
Vpc.Builder.create(this, "Vpc2")
.natGatewayProvider(NatProvider.regionalGateway(RegionalNatGatewayProviderProps.builder()
.allocationId(eip.getAttrAllocationId())
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forRegionalNatGatewayProviderPropsstatic final classAn implementation forRegionalNatGatewayProviderProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe allocation ID of the Elastic IP address to use for this NAT gateway.default List<AvailabilityZoneAddress> Specifies which Availability Zones you want the NAT gateway to support and the Elastic IP addresses to use in each AZ.default IEIPRefgetEip()Reference to an existing EIP to use for this NAT gateway.default DurationMaximum amount of time to wait before forcibly releasing IP addresses if connections are still in progress.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAllocationId
The allocation ID of the Elastic IP address to use for this NAT gateway.Cannot be specified together with
eip. Ignored whenavailabilityZoneAddressesis specified.Default: - A new EIP is automatically allocated
-
getAvailabilityZoneAddresses
Specifies which Availability Zones you want the NAT gateway to support and the Elastic IP addresses to use in each AZ.When specified,
allocationIdandeipare ignored. This enables manual mode for Regional NAT Gateway where you control EIP allocation per AZ.In manual mode the gateway only serves the listed Availability Zones and does not expand to other zones automatically, so every Availability Zone that contains a private subnet routed through this gateway must be listed. When the zone names are known at synthesis time, a private subnet in an unlisted zone is rejected with an error. Entries that use
availabilityZoneIdor unresolved tokens cannot be checked and are assumed to be correct.Default: - Automatic mode: AWS manages AZ coverage and EIP allocation
-
getEip
Reference to an existing EIP to use for this NAT gateway.Cannot be specified together with
allocationId. Ignored whenavailabilityZoneAddressesis specified.Default: - A new EIP is automatically allocated
-
getMaxDrainDuration
Maximum amount of time to wait before forcibly releasing IP addresses if connections are still in progress.Default: Duration.seconds(350)
-
builder
-