v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-171,1822,9897.4 MB

Associates Elastic IP addresses (EIPs) and private IPv4 addresses with a public NAT gateway. For more information, see Work with NAT gateways in the Amazon Virtual Private Cloud User Guide.

By default, you can associate up to 2 Elastic IP addresses per public NAT gateway. You can increase the limit by requesting a quota adjustment. For more information, see Elastic IP address quotas in the Amazon Virtual Private Cloud User Guide.

get/#Action=AssociateNatGatewayAddress

Query parameters

NatGatewayIdstring required

The NAT gateway ID.

AllocationIdstring[] required

The allocation IDs of EIPs that you want to associate with your NAT gateway.

PrivateIpAddressstring[]

The private IPv4 addresses that you want to assign to the NAT gateway.

DryRunboolean

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.

Action'AssociateNatGatewayAddress' required
Version'2016-11-15' required

Response

Success