Safe Haskell | None |
---|---|
Language | Haskell2010 |
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 ElasticCompute Cloud User Guide.
http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-AllocateAddress.html
- data AllocateAddress
- allocateAddress :: AllocateAddress
- aaDomain :: Lens' AllocateAddress (Maybe DomainType)
- aaDryRun :: Lens' AllocateAddress (Maybe Bool)
- data AllocateAddressResponse
- allocateAddressResponse :: AllocateAddressResponse
- aarAllocationId :: Lens' AllocateAddressResponse (Maybe Text)
- aarDomain :: Lens' AllocateAddressResponse (Maybe DomainType)
- aarPublicIp :: Lens' AllocateAddressResponse (Maybe Text)
Request
data AllocateAddress Source
Request constructor
allocateAddress :: AllocateAddress Source
AllocateAddress
constructor.
The fields accessible through corresponding lenses are:
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
.
Response
Response constructor
allocateAddressResponse :: AllocateAddressResponse Source
AllocateAddressResponse
constructor.
The fields accessible through corresponding lenses are:
Response lenses
aarAllocationId :: 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.
aarDomain :: 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
).
aarPublicIp :: Lens' AllocateAddressResponse (Maybe Text) Source
The Elastic IP address.