amazonka-ec2-1.3.2: 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.MoveAddressToVPC

Contents

Description

Moves an Elastic IP address from the EC2-Classic platform to the EC2-VPC platform. The Elastic IP address must be allocated to your account, and it must not be associated with an instance. After the Elastic IP address is moved, it is no longer available for use in the EC2-Classic platform, unless you move it back using the RestoreAddressToClassic request. You cannot move an Elastic IP address that's allocated for use in the EC2-VPC platform to the EC2-Classic platform.

See: AWS API Reference for MoveAddressToVPC.

Synopsis

Creating a Request

moveAddressToVPC Source

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

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

Request Lenses

matvDryRun :: Lens' MoveAddressToVPC (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.

matvPublicIP :: Lens' MoveAddressToVPC Text Source

The Elastic IP address.

Destructuring the Response

moveAddressToVPCResponse Source

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

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

Response Lenses

matvrsStatus :: Lens' MoveAddressToVPCResponse (Maybe AddressStatus) Source

The status of the move of the IP address.

matvrsAllocationId :: Lens' MoveAddressToVPCResponse (Maybe Text) Source

The allocation ID for the Elastic IP address.