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

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.DescribeAddresses

Contents

Description

Describes one or more of your Elastic IP addresses.

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.

See: AWS API Reference for DescribeAddresses.

Synopsis

Creating a Request

describeAddresses :: DescribeAddresses Source

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

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

Request Lenses

daFilters :: Lens' DescribeAddresses [Filter] Source

One or more filters. Filter names and values are case-sensitive.

  • 'allocation-id' - [EC2-VPC] The allocation ID for the address.
  • 'association-id' - [EC2-VPC] The association ID for the address.
  • domain - Indicates whether the address is for use in EC2-Classic (standard) or in a VPC (vpc).
  • 'instance-id' - The ID of the instance the address is associated with, if any.
  • 'network-interface-id' - [EC2-VPC] The ID of the network interface that the address is associated with, if any.
  • 'network-interface-owner-id' - The AWS account ID of the owner.
  • 'private-ip-address' - [EC2-VPC] The private IP address associated with the Elastic IP address.
  • 'public-ip' - The Elastic IP address.

daPublicIPs :: Lens' DescribeAddresses [Text] Source

EC2-Classic
One or more Elastic IP addresses.

Default: Describes all your Elastic IP addresses.

daAllocationIds :: Lens' DescribeAddresses [Text] Source

EC2-VPC
One or more allocation IDs.

Default: Describes all your Elastic IP addresses.

daDryRun :: Lens' DescribeAddresses (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

describeAddressesResponse Source

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

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

Response Lenses

darsAddresses :: Lens' DescribeAddressesResponse [Address] Source

Information about one or more Elastic IP addresses.