amazonka-ec2-1.1.0: 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.AllocateAddress

Contents

Description

Acquires an Elastic IP address.

An Elastic IP address is for use either in 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 AllocateAddress.

Synopsis

Creating a Request

allocateAddress :: AllocateAddress Source

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

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

Request Lenses

aaDomain :: Lens' AllocateAddress (Maybe DomainType) Source

Set to vpc to allocate the address for use with instances in a VPC.

Default: The address is for use with instances in EC2-Classic.

aaDryRun :: Lens' AllocateAddress (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

allocateAddressResponse Source

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

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

Response Lenses

aarsAllocationId :: Lens' AllocateAddressResponse (Maybe Text) Source

EC2-VPC
The ID that AWS assigns to represent the allocation of the Elastic IP address for use with instances in a VPC.

aarsDomain :: Lens' AllocateAddressResponse (Maybe DomainType) Source

Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard) or instances in a VPC (vpc).

aarsStatus :: Lens' AllocateAddressResponse Int Source

The response status code.