amazonka-ec2-1.3.0: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <>
Portabilitynon-portable (GHC extensions)
Safe HaskellNone




Disassociates an Elastic IP address from the instance or network interface it's associated with.

An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn't return an error.

See: AWS API Reference for DisassociateAddress.


Creating a Request

disassociateAddress :: DisassociateAddress Source

Creates a value of DisassociateAddress with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

dasAssociationId :: Lens' DisassociateAddress (Maybe Text) Source

The association ID. Required for EC2-VPC.

dasPublicIP :: Lens' DisassociateAddress (Maybe Text) Source

The Elastic IP address. Required for EC2-Classic.

dasDryRun :: Lens' DisassociateAddress (Maybe Bool) Source

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.

Destructuring the Response

disassociateAddressResponse :: DisassociateAddressResponse Source

Creates a value of DisassociateAddressResponse with the minimum fields required to make a request.