Skip to content

/AWS1/CL_EC2=>UNASSIGNPVTNATGATEWAYADDRESS()

About UnassignPrivateNatGatewayAddress

Unassigns secondary private IPv4 addresses from a private NAT gateway. You cannot unassign your primary private IP. For more information, see Edit secondary IP address associations in the Amazon VPC User Guide.

While unassigning is in progress, you cannot assign/unassign additional IP addresses while the connections are being drained. You are, however, allowed to delete the NAT gateway.

A private IP address will only be released at the end of MaxDrainDurationSeconds. The private IP addresses stay associated and support the existing connections, but do not support any new connections (new connections are distributed across the remaining assigned private IP address). After the existing connections drain out, the private IP addresses are released.

Method Signature

IMPORTING

Required arguments:

IV_NATGATEWAYID TYPE /AWS1/EC2NATGATEWAYID /AWS1/EC2NATGATEWAYID

The ID of the NAT gateway.

IT_PRIVATEIPADDRESSES TYPE /AWS1/CL_EC2IPLIST_W=>TT_IPLIST TT_IPLIST

The private IPv4 addresses you want to unassign.

Optional arguments:

IV_MAXDRAINDURATIONSECONDS TYPE /AWS1/EC2DRAINSECONDS /AWS1/EC2DRAINSECONDS

The maximum amount of time to wait (in seconds) before forcibly releasing the IP addresses if connections are still in progress. Default value is 350 seconds.

IV_DRYRUN TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN

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.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_EC2UNASSIGNPVTNATGW01 /AWS1/CL_EC2UNASSIGNPVTNATGW01