Skip to contents

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.

See https://www.paws-r-sdk.com/docs/ec2_associate_nat_gateway_address/ for full documentation.

Usage

ec2_associate_nat_gateway_address(
  NatGatewayId,
  AllocationIds,
  PrivateIpAddresses = NULL,
  DryRun = NULL,
  AvailabilityZone = NULL,
  AvailabilityZoneId = NULL
)

Arguments

NatGatewayId

[required] The ID of the NAT gateway.

AllocationIds

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

PrivateIpAddresses

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

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.

AvailabilityZone

For regional NAT gateways only: The Availability Zone where you want to associate an Elastic IP address (EIP). The regional NAT gateway uses a separate EIP in each AZ to handle outbound NAT traffic from that AZ.

A regional NAT gateway is a single NAT Gateway that works across multiple availability zones (AZs) in your VPC, providing redundancy, scalability and availability across all the AZs in a Region.

AvailabilityZoneId

For regional NAT gateways only: The ID of the Availability Zone where you want to associate an Elastic IP address (EIP). The regional NAT gateway uses a separate EIP in each AZ to handle outbound NAT traffic from that AZ. Use this instead of AvailabilityZone for consistent identification of AZs across Amazon Web Services Regions.

A regional NAT gateway is a single NAT Gateway that works across multiple availability zones (AZs) in your VPC, providing redundancy, scalability and availability across all the AZs in a Region.