AssignPrivateNatGatewayAddress - Amazon Elastic Compute Cloud

AssignPrivateNatGatewayAddress

Assigns one or more 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.

DryRun

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

NatGatewayId

The ID of the NAT gateway.

Type: String

Required: Yes

PrivateIpAddress.N

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

Type: Array of strings

Required: No

PrivateIpAddressCount

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.

natGatewayAddressSet

NAT gateway IP addresses.

Type: Array of NatGatewayAddress objects

natGatewayId

The ID of the NAT gateway.

Type: String

requestId

The ID of the request.

Type: String

Errors

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: