Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
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 for more than 24 hours, 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 was originally allocated for use in the EC2-VPC platform to the EC2-Classic platform.
We are retiring EC2-Classic. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide.
Synopsis
- data MoveAddressToVpc = MoveAddressToVpc' {}
- newMoveAddressToVpc :: Text -> MoveAddressToVpc
- moveAddressToVpc_dryRun :: Lens' MoveAddressToVpc (Maybe Bool)
- moveAddressToVpc_publicIp :: Lens' MoveAddressToVpc Text
- data MoveAddressToVpcResponse = MoveAddressToVpcResponse' {}
- newMoveAddressToVpcResponse :: Int -> MoveAddressToVpcResponse
- moveAddressToVpcResponse_allocationId :: Lens' MoveAddressToVpcResponse (Maybe Text)
- moveAddressToVpcResponse_status :: Lens' MoveAddressToVpcResponse (Maybe AddressStatus)
- moveAddressToVpcResponse_httpStatus :: Lens' MoveAddressToVpcResponse Int
Creating a Request
data MoveAddressToVpc Source #
See: newMoveAddressToVpc
smart constructor.
MoveAddressToVpc' | |
|
Instances
Create a value of MoveAddressToVpc
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dryRun:MoveAddressToVpc'
, moveAddressToVpc_dryRun
- 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
.
MoveAddressToVpc
, moveAddressToVpc_publicIp
- The Elastic IP address.
Request Lenses
moveAddressToVpc_dryRun :: 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
.
moveAddressToVpc_publicIp :: Lens' MoveAddressToVpc Text Source #
The Elastic IP address.
Destructuring the Response
data MoveAddressToVpcResponse Source #
See: newMoveAddressToVpcResponse
smart constructor.
MoveAddressToVpcResponse' | |
|
Instances
newMoveAddressToVpcResponse Source #
Create a value of MoveAddressToVpcResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
MoveAddressToVpcResponse
, moveAddressToVpcResponse_allocationId
- The allocation ID for the Elastic IP address.
MoveAddressToVpcResponse
, moveAddressToVpcResponse_status
- The status of the move of the IP address.
$sel:httpStatus:MoveAddressToVpcResponse'
, moveAddressToVpcResponse_httpStatus
- The response's http status code.
Response Lenses
moveAddressToVpcResponse_allocationId :: Lens' MoveAddressToVpcResponse (Maybe Text) Source #
The allocation ID for the Elastic IP address.
moveAddressToVpcResponse_status :: Lens' MoveAddressToVpcResponse (Maybe AddressStatus) Source #
The status of the move of the IP address.
moveAddressToVpcResponse_httpStatus :: Lens' MoveAddressToVpcResponse Int Source #
The response's http status code.