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 |
Enables Elastic IP address transfer. For more information, see Transfer Elastic IP addresses in the Amazon Virtual Private Cloud User Guide.
Synopsis
- data EnableAddressTransfer = EnableAddressTransfer' {
- dryRun :: Maybe Bool
- allocationId :: Text
- transferAccountId :: Text
- newEnableAddressTransfer :: Text -> Text -> EnableAddressTransfer
- enableAddressTransfer_dryRun :: Lens' EnableAddressTransfer (Maybe Bool)
- enableAddressTransfer_allocationId :: Lens' EnableAddressTransfer Text
- enableAddressTransfer_transferAccountId :: Lens' EnableAddressTransfer Text
- data EnableAddressTransferResponse = EnableAddressTransferResponse' {}
- newEnableAddressTransferResponse :: Int -> EnableAddressTransferResponse
- enableAddressTransferResponse_addressTransfer :: Lens' EnableAddressTransferResponse (Maybe AddressTransfer)
- enableAddressTransferResponse_httpStatus :: Lens' EnableAddressTransferResponse Int
Creating a Request
data EnableAddressTransfer Source #
See: newEnableAddressTransfer
smart constructor.
EnableAddressTransfer' | |
|
Instances
newEnableAddressTransfer Source #
Create a value of EnableAddressTransfer
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:EnableAddressTransfer'
, enableAddressTransfer_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
.
EnableAddressTransfer
, enableAddressTransfer_allocationId
- The allocation ID of an Elastic IP address.
EnableAddressTransfer
, enableAddressTransfer_transferAccountId
- The ID of the account that you want to transfer the Elastic IP address
to.
Request Lenses
enableAddressTransfer_dryRun :: Lens' EnableAddressTransfer (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
.
enableAddressTransfer_allocationId :: Lens' EnableAddressTransfer Text Source #
The allocation ID of an Elastic IP address.
enableAddressTransfer_transferAccountId :: Lens' EnableAddressTransfer Text Source #
The ID of the account that you want to transfer the Elastic IP address to.
Destructuring the Response
data EnableAddressTransferResponse Source #
See: newEnableAddressTransferResponse
smart constructor.
EnableAddressTransferResponse' | |
|
Instances
newEnableAddressTransferResponse Source #
Create a value of EnableAddressTransferResponse
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:addressTransfer:EnableAddressTransferResponse'
, enableAddressTransferResponse_addressTransfer
- An Elastic IP address transfer.
$sel:httpStatus:EnableAddressTransferResponse'
, enableAddressTransferResponse_httpStatus
- The response's http status code.
Response Lenses
enableAddressTransferResponse_addressTransfer :: Lens' EnableAddressTransferResponse (Maybe AddressTransfer) Source #
An Elastic IP address transfer.
enableAddressTransferResponse_httpStatus :: Lens' EnableAddressTransferResponse Int Source #
The response's http status code.