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 |
Amazonka.EC2.DisableAddressTransfer
Description
Disables Elastic IP address transfer. For more information, see Transfer Elastic IP addresses in the Amazon Virtual Private Cloud User Guide.
Synopsis
- data DisableAddressTransfer = DisableAddressTransfer' {
- dryRun :: Maybe Bool
- allocationId :: Text
- newDisableAddressTransfer :: Text -> DisableAddressTransfer
- disableAddressTransfer_dryRun :: Lens' DisableAddressTransfer (Maybe Bool)
- disableAddressTransfer_allocationId :: Lens' DisableAddressTransfer Text
- data DisableAddressTransferResponse = DisableAddressTransferResponse' {}
- newDisableAddressTransferResponse :: Int -> DisableAddressTransferResponse
- disableAddressTransferResponse_addressTransfer :: Lens' DisableAddressTransferResponse (Maybe AddressTransfer)
- disableAddressTransferResponse_httpStatus :: Lens' DisableAddressTransferResponse Int
Creating a Request
data DisableAddressTransfer Source #
See: newDisableAddressTransfer
smart constructor.
Constructors
DisableAddressTransfer' | |
Fields
|
Instances
newDisableAddressTransfer Source #
Arguments
:: Text | |
-> DisableAddressTransfer |
Create a value of DisableAddressTransfer
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:DisableAddressTransfer'
, disableAddressTransfer_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
.
DisableAddressTransfer
, disableAddressTransfer_allocationId
- The allocation ID of an Elastic IP address.
Request Lenses
disableAddressTransfer_dryRun :: Lens' DisableAddressTransfer (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
.
disableAddressTransfer_allocationId :: Lens' DisableAddressTransfer Text Source #
The allocation ID of an Elastic IP address.
Destructuring the Response
data DisableAddressTransferResponse Source #
See: newDisableAddressTransferResponse
smart constructor.
Constructors
DisableAddressTransferResponse' | |
Fields
|
Instances
newDisableAddressTransferResponse Source #
Create a value of DisableAddressTransferResponse
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:DisableAddressTransferResponse'
, disableAddressTransferResponse_addressTransfer
- An Elastic IP address transfer.
$sel:httpStatus:DisableAddressTransferResponse'
, disableAddressTransferResponse_httpStatus
- The response's http status code.
Response Lenses
disableAddressTransferResponse_addressTransfer :: Lens' DisableAddressTransferResponse (Maybe AddressTransfer) Source #
An Elastic IP address transfer.
disableAddressTransferResponse_httpStatus :: Lens' DisableAddressTransferResponse Int Source #
The response's http status code.