NatGatewayArgs

data class NatGatewayArgs(val allocationId: Output<String>? = null, val connectivityType: Output<String>? = null, val maxDrainDurationSeconds: Output<Int>? = null, val privateIpAddress: Output<String>? = null, val secondaryAllocationIds: Output<List<String>>? = null, val secondaryPrivateIpAddressCount: Output<Int>? = null, val secondaryPrivateIpAddresses: Output<List<String>>? = null, val subnetId: Output<String>? = null, val tags: Output<List<TagArgs>>? = null) : ConvertibleToJava<NatGatewayArgs>

Specifies a network address translation (NAT) gateway in the specified subnet. You can create either a public NAT gateway or a private NAT gateway. The default is a public NAT gateway. If you create a public NAT gateway, you must specify an elastic IP address. With a NAT gateway, instances in a private subnet can connect to the internet, other AWS services, or an on-premises network using the IP address of the NAT gateway. For more information, see NAT gateways in the Amazon VPC User Guide. If you add a default route (`AWS::EC2::Route` resource) that points to a NAT gateway, specify the NAT gateway ID for the route's `NatGatewayId` property. When you associate an Elastic IP address or secondary Elastic IP address with a public NAT gateway, the network border group of the Elastic IP address must match the network border group of the Availability Zone (AZ) that the public NAT gateway is in. Otherwise, the NAT gateway fails to launch. You can see the network border group for the AZ by viewing the details of the subnet. Similarly, you can view the network border group for the Elastic IP address by viewing its details. For more information, see Allocate an Elastic IP address in the Amazon VPC User Guide.

Constructors

Link copied to clipboard
constructor(allocationId: Output<String>? = null, connectivityType: Output<String>? = null, maxDrainDurationSeconds: Output<Int>? = null, privateIpAddress: Output<String>? = null, secondaryAllocationIds: Output<List<String>>? = null, secondaryPrivateIpAddressCount: Output<Int>? = null, secondaryPrivateIpAddresses: Output<List<String>>? = null, subnetId: Output<String>? = null, tags: Output<List<TagArgs>>? = null)

Properties

Link copied to clipboard
val allocationId: Output<String>? = null

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.

Link copied to clipboard
val connectivityType: Output<String>? = null

Indicates whether the NAT gateway supports public or private connectivity. The default is public connectivity.

Link copied to clipboard
val maxDrainDurationSeconds: Output<Int>? = null

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.

Link copied to clipboard
val privateIpAddress: Output<String>? = null

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.

Link copied to clipboard
val secondaryAllocationIds: Output<List<String>>? = null

Secondary EIP allocation IDs. For more information, see Create a NAT gateway in the Amazon VPC User Guide.

Link copied to clipboard
val secondaryPrivateIpAddressCount: Output<Int>? = null

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. `SecondaryPrivateIpAddressCount` and `SecondaryPrivateIpAddresses` cannot be set at the same time.

Link copied to clipboard

Secondary private IPv4 addresses. For more information about secondary addresses, see Create a NAT gateway in the Amazon Virtual Private Cloud User Guide. `SecondaryPrivateIpAddressCount` and `SecondaryPrivateIpAddresses` cannot be set at the same time.

Link copied to clipboard
val subnetId: Output<String>? = null

The ID of the subnet in which the NAT gateway is located.

Link copied to clipboard
val tags: Output<List<TagArgs>>? = null

The tags for the NAT gateway.

Functions

Link copied to clipboard
open override fun toJava(): NatGatewayArgs