AssignPrivateNatGatewayAddress - Amazon Elastic Compute Cloud


Assigns private IPv4 addresses to a private NAT gateway. For more information, see Work with NAT gateways in the Amazon VPC User Guide.

Request Parameters

The following parameters are for this specific action. For more information about required and optional parameters that are common to all actions, see Common Query Parameters.


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 DryRunOperation. Otherwise, it is UnauthorizedOperation.

Type: Boolean

Required: No


The ID of the NAT gateway.

Type: String

Required: Yes


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

Type: Array of strings

Required: No


The number of private IP addresses to assign to the NAT gateway. You can't specify this parameter when also specifying private IP addresses.

Type: Integer

Valid Range: Minimum value of 1. Maximum value of 31.

Required: No

Response Elements

The following elements are returned by the service.


NAT gateway IP addresses.

Type: Array of NatGatewayAddress objects


The ID of the NAT gateway.

Type: String


The ID of the request.

Type: String


For information about the errors that are common to all actions, see Common client error codes.

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: