Class CfnNatGateway.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNatGateway>
- Enclosing class:
CfnNatGateway
CfnNatGateway.-
Method Summary
Modifier and TypeMethodDescriptionallocationId(String allocationId) [Public NAT gateway only] The allocation ID of the Elastic IP address that's associated with the NAT gateway.allocationId(IEIPRef allocationId) [Public NAT gateway only] The allocation ID of the Elastic IP address that's associated with the NAT gateway.availabilityMode(String availabilityMode) Indicates whether this is a zonal (single-AZ) or regional (multi-AZ) NAT gateway.availabilityZoneAddresses(List<? extends Object> availabilityZoneAddresses) For regional NAT gateways only: Specifies which Availability Zones you want the NAT gateway to support and the Elastic IP addresses (EIPs) to use in each AZ.availabilityZoneAddresses(IResolvable availabilityZoneAddresses) For regional NAT gateways only: Specifies which Availability Zones you want the NAT gateway to support and the Elastic IP addresses (EIPs) to use in each AZ.build()connectivityType(String connectivityType) Indicates whether the NAT gateway supports public or private connectivity.static CfnNatGateway.BuildermaxDrainDurationSeconds(Number maxDrainDurationSeconds) The maximum amount of time to wait (in seconds) before forcibly releasing the IP addresses if connections are still in progress.privateIpAddress(String privateIpAddress) The private IPv4 address to assign to the NAT gateway.secondaryAllocationIds(List<String> secondaryAllocationIds) Secondary EIP allocation IDs.secondaryPrivateIpAddressCount(Number secondaryPrivateIpAddressCount) [Private NAT gateway only] The number of secondary private IPv4 addresses you want to assign to the NAT gateway.secondaryPrivateIpAddresses(List<String> secondaryPrivateIpAddresses) Secondary private IPv4 addresses.The ID of the subnet in which the NAT gateway is located.subnetId(ISubnetRef subnetId) The ID of the subnet in which the NAT gateway is located.The tags for the NAT gateway.The ID of the VPC in which the NAT gateway is located.
-
Method Details
-
create
@Stability(Stable) public static CfnNatGateway.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnNatGateway.Builder.
-
allocationId
[Public NAT gateway only] The allocation ID of the Elastic IP address that's associated with the NAT gateway.This property is required for a public NAT gateway and cannot be specified with a private NAT gateway.
- Parameters:
allocationId- [Public NAT gateway only] The allocation ID of the Elastic IP address that's associated with the NAT gateway. This parameter is required.- Returns:
this- See Also:
-
allocationId
[Public NAT gateway only] The allocation ID of the Elastic IP address that's associated with the NAT gateway.This property is required for a public NAT gateway and cannot be specified with a private NAT gateway.
- Parameters:
allocationId- [Public NAT gateway only] The allocation ID of the Elastic IP address that's associated with the NAT gateway. This parameter is required.- Returns:
this- See Also:
-
availabilityMode
Indicates whether this is a zonal (single-AZ) or regional (multi-AZ) NAT gateway.A zonal NAT gateway is a NAT Gateway that provides redundancy and scalability within a single availability zone. A regional NAT gateway is a single NAT Gateway that works across multiple availability zones (AZs) in your VPC, providing redundancy, scalability and availability across all the AZs in a Region.
For more information, see Regional NAT gateways for automatic multi-AZ expansion in the Amazon VPC User Guide .
- Parameters:
availabilityMode- Indicates whether this is a zonal (single-AZ) or regional (multi-AZ) NAT gateway. This parameter is required.- Returns:
this- See Also:
-
availabilityZoneAddresses
@Stability(Stable) public CfnNatGateway.Builder availabilityZoneAddresses(IResolvable availabilityZoneAddresses) For regional NAT gateways only: Specifies which Availability Zones you want the NAT gateway to support and the Elastic IP addresses (EIPs) to use in each AZ.The regional NAT gateway uses these EIPs to handle outbound NAT traffic from their respective AZs. If not specified, the NAT gateway will automatically expand to new AZs and associate EIPs upon detection of an elastic network interface. If you specify this parameter, auto-expansion is disabled and you must manually manage AZ coverage.
A regional NAT gateway is a single NAT Gateway that works across multiple availability zones (AZs) in your VPC, providing redundancy, scalability and availability across all the AZs in a Region.
For more information, see Regional NAT gateways for automatic multi-AZ expansion in the Amazon VPC User Guide .
- Parameters:
availabilityZoneAddresses- For regional NAT gateways only: Specifies which Availability Zones you want the NAT gateway to support and the Elastic IP addresses (EIPs) to use in each AZ. This parameter is required.- Returns:
this- See Also:
-
availabilityZoneAddresses
@Stability(Stable) public CfnNatGateway.Builder availabilityZoneAddresses(List<? extends Object> availabilityZoneAddresses) For regional NAT gateways only: Specifies which Availability Zones you want the NAT gateway to support and the Elastic IP addresses (EIPs) to use in each AZ.The regional NAT gateway uses these EIPs to handle outbound NAT traffic from their respective AZs. If not specified, the NAT gateway will automatically expand to new AZs and associate EIPs upon detection of an elastic network interface. If you specify this parameter, auto-expansion is disabled and you must manually manage AZ coverage.
A regional NAT gateway is a single NAT Gateway that works across multiple availability zones (AZs) in your VPC, providing redundancy, scalability and availability across all the AZs in a Region.
For more information, see Regional NAT gateways for automatic multi-AZ expansion in the Amazon VPC User Guide .
- Parameters:
availabilityZoneAddresses- For regional NAT gateways only: Specifies which Availability Zones you want the NAT gateway to support and the Elastic IP addresses (EIPs) to use in each AZ. This parameter is required.- Returns:
this- See Also:
-
connectivityType
Indicates whether the NAT gateway supports public or private connectivity.The default is public connectivity.
- Parameters:
connectivityType- Indicates whether the NAT gateway supports public or private connectivity. This parameter is required.- Returns:
this- See Also:
-
maxDrainDurationSeconds
@Stability(Stable) public CfnNatGateway.Builder maxDrainDurationSeconds(Number maxDrainDurationSeconds) The maximum amount of time to wait (in seconds) before forcibly releasing the IP addresses if connections are still in progress.Default value is 350 seconds.
- Parameters:
maxDrainDurationSeconds- The maximum amount of time to wait (in seconds) before forcibly releasing the IP addresses if connections are still in progress. This parameter is required.- Returns:
this- See Also:
-
privateIpAddress
The private IPv4 address to assign to the NAT gateway.If you don't provide an address, a private IPv4 address will be automatically assigned.
- Parameters:
privateIpAddress- The private IPv4 address to assign to the NAT gateway. This parameter is required.- Returns:
this- See Also:
-
secondaryAllocationIds
@Stability(Stable) public CfnNatGateway.Builder secondaryAllocationIds(List<String> secondaryAllocationIds) Secondary EIP allocation IDs.For more information, see Create a NAT gateway in the Amazon VPC User Guide .
- Parameters:
secondaryAllocationIds- Secondary EIP allocation IDs. This parameter is required.- Returns:
this- See Also:
-
secondaryPrivateIpAddressCount
@Stability(Stable) public CfnNatGateway.Builder secondaryPrivateIpAddressCount(Number secondaryPrivateIpAddressCount) [Private NAT gateway only] The number of secondary private IPv4 addresses you want to assign to the NAT gateway.For more information about secondary addresses, see Create a NAT gateway in the Amazon Virtual Private Cloud User Guide .
SecondaryPrivateIpAddressCountandSecondaryPrivateIpAddressescannot be set at the same time.- Parameters:
secondaryPrivateIpAddressCount- [Private NAT gateway only] The number of secondary private IPv4 addresses you want to assign to the NAT gateway. This parameter is required.- Returns:
this- See Also:
-
secondaryPrivateIpAddresses
@Stability(Stable) public CfnNatGateway.Builder secondaryPrivateIpAddresses(List<String> secondaryPrivateIpAddresses) Secondary private IPv4 addresses.For more information about secondary addresses, see Create a NAT gateway in the Amazon Virtual Private Cloud User Guide .
SecondaryPrivateIpAddressCountandSecondaryPrivateIpAddressescannot be set at the same time.- Parameters:
secondaryPrivateIpAddresses- Secondary private IPv4 addresses. This parameter is required.- Returns:
this- See Also:
-
subnetId
The ID of the subnet in which the NAT gateway is located.- Parameters:
subnetId- The ID of the subnet in which the NAT gateway is located. This parameter is required.- Returns:
this- See Also:
-
subnetId
The ID of the subnet in which the NAT gateway is located.- Parameters:
subnetId- The ID of the subnet in which the NAT gateway is located. This parameter is required.- Returns:
this- See Also:
-
tags
The tags for the NAT gateway.- Parameters:
tags- The tags for the NAT gateway. This parameter is required.- Returns:
this- See Also:
-
vpcId
The ID of the VPC in which the NAT gateway is located.- Parameters:
vpcId- The ID of the VPC in which the NAT gateway is located. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnNatGateway>- Returns:
- a newly built instance of
CfnNatGateway.
-