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 |
Disassociates an Elastic IP address from the instance or network interface it's associated with.
An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.
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.
This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn't return an error.
Synopsis
- data DisassociateAddress = DisassociateAddress' {}
- newDisassociateAddress :: DisassociateAddress
- disassociateAddress_associationId :: Lens' DisassociateAddress (Maybe Text)
- disassociateAddress_dryRun :: Lens' DisassociateAddress (Maybe Bool)
- disassociateAddress_publicIp :: Lens' DisassociateAddress (Maybe Text)
- data DisassociateAddressResponse = DisassociateAddressResponse' {
- newDisassociateAddressResponse :: DisassociateAddressResponse
Creating a Request
data DisassociateAddress Source #
See: newDisassociateAddress
smart constructor.
DisassociateAddress' | |
|
Instances
newDisassociateAddress :: DisassociateAddress Source #
Create a value of DisassociateAddress
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:
DisassociateAddress
, disassociateAddress_associationId
- [EC2-VPC] The association ID. Required for EC2-VPC.
$sel:dryRun:DisassociateAddress'
, disassociateAddress_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
.
DisassociateAddress
, disassociateAddress_publicIp
- [EC2-Classic] The Elastic IP address. Required for EC2-Classic.
Request Lenses
disassociateAddress_associationId :: Lens' DisassociateAddress (Maybe Text) Source #
- EC2-VPC
- The association ID. Required for EC2-VPC.
disassociateAddress_dryRun :: Lens' DisassociateAddress (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
.
disassociateAddress_publicIp :: Lens' DisassociateAddress (Maybe Text) Source #
- EC2-Classic
- The Elastic IP address. Required for EC2-Classic.
Destructuring the Response
data DisassociateAddressResponse Source #
See: newDisassociateAddressResponse
smart constructor.
Instances
newDisassociateAddressResponse :: DisassociateAddressResponse Source #
Create a value of DisassociateAddressResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.