AssociateNatGatewayAddress
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 VPC 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 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.
- AllocationId.N
-
The allocation IDs of EIPs that you want to associate with your NAT gateway.
Type: Array of strings
Required: Yes
- 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 isUnauthorizedOperation
.Type: Boolean
Required: No
- NatGatewayId
-
The ID of the NAT gateway.
Type: String
Required: Yes
- PrivateIpAddress.N
-
The private IPv4 addresses that you want to assign to the NAT gateway.
Type: Array of strings
Required: No
Response Elements
The following elements are returned by the service.
- natGatewayAddressSet
-
The 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: