Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
- moveAddressToVPC :: Text -> MoveAddressToVPC
- data MoveAddressToVPC
- matvDryRun :: Lens' MoveAddressToVPC (Maybe Bool)
- matvPublicIP :: Lens' MoveAddressToVPC Text
- moveAddressToVPCResponse :: Int -> MoveAddressToVPCResponse
- data MoveAddressToVPCResponse
- matvrsStatus :: Lens' MoveAddressToVPCResponse (Maybe AddressStatus)
- matvrsAllocationId :: Lens' MoveAddressToVPCResponse (Maybe Text)
- matvrsResponseStatus :: Lens' MoveAddressToVPCResponse Int
Creating a Request
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:
data MoveAddressToVPC Source
See: moveAddressToVPC
smart constructor.
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:
data MoveAddressToVPCResponse Source
See: moveAddressToVPCResponse
smart constructor.
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.
matvrsResponseStatus :: Lens' MoveAddressToVPCResponse Int Source
The response status code.