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

Copyright (c) 2013-2018 Brendan Hay Mozilla Public License, v. 2.0. Brendan Hay auto-generated non-portable (GHC extensions) None Haskell2010

Description

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.

Synopsis

# Creating a Request

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:

• dasAssociationId - [EC2-VPC] The association ID. Required for EC2-VPC.
• dasPublicIP - [EC2-Classic] The Elastic IP address. Required for EC2-Classic.
• dasDryRun - 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 .

See: disassociateAddress smart constructor.

Instances

# Request Lenses

EC2-VPC
The association ID. Required for EC2-VPC.
EC2-Classic
The Elastic IP address. Required for EC2-Classic.

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

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

See: disassociateAddressResponse smart constructor.

Instances