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.ReleaseIpamPoolAllocation
Description
Release an allocation within an IPAM pool. You can only use this action to release manual allocations. To remove an allocation for a resource without deleting the resource, set its monitored state to false using ModifyIpamResourceCidr. For more information, see Release an allocation in the Amazon VPC IPAM User Guide.
Synopsis
- data ReleaseIpamPoolAllocation = ReleaseIpamPoolAllocation' {
- dryRun :: Maybe Bool
- ipamPoolId :: Text
- cidr :: Text
- ipamPoolAllocationId :: Text
- newReleaseIpamPoolAllocation :: Text -> Text -> Text -> ReleaseIpamPoolAllocation
- releaseIpamPoolAllocation_dryRun :: Lens' ReleaseIpamPoolAllocation (Maybe Bool)
- releaseIpamPoolAllocation_ipamPoolId :: Lens' ReleaseIpamPoolAllocation Text
- releaseIpamPoolAllocation_cidr :: Lens' ReleaseIpamPoolAllocation Text
- releaseIpamPoolAllocation_ipamPoolAllocationId :: Lens' ReleaseIpamPoolAllocation Text
- data ReleaseIpamPoolAllocationResponse = ReleaseIpamPoolAllocationResponse' {
- success :: Maybe Bool
- httpStatus :: Int
- newReleaseIpamPoolAllocationResponse :: Int -> ReleaseIpamPoolAllocationResponse
- releaseIpamPoolAllocationResponse_success :: Lens' ReleaseIpamPoolAllocationResponse (Maybe Bool)
- releaseIpamPoolAllocationResponse_httpStatus :: Lens' ReleaseIpamPoolAllocationResponse Int
Creating a Request
data ReleaseIpamPoolAllocation Source #
See: newReleaseIpamPoolAllocation
smart constructor.
Constructors
ReleaseIpamPoolAllocation' | |
Fields
|
Instances
newReleaseIpamPoolAllocation Source #
Arguments
:: Text | |
-> Text | |
-> Text | |
-> ReleaseIpamPoolAllocation |
Create a value of ReleaseIpamPoolAllocation
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:ReleaseIpamPoolAllocation'
, releaseIpamPoolAllocation_dryRun
- A check for 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
.
ReleaseIpamPoolAllocation
, releaseIpamPoolAllocation_ipamPoolId
- The ID of the IPAM pool which contains the allocation you want to
release.
ReleaseIpamPoolAllocation
, releaseIpamPoolAllocation_cidr
- The CIDR of the allocation you want to release.
ReleaseIpamPoolAllocation
, releaseIpamPoolAllocation_ipamPoolAllocationId
- The ID of the allocation.
Request Lenses
releaseIpamPoolAllocation_dryRun :: Lens' ReleaseIpamPoolAllocation (Maybe Bool) Source #
A check for 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
.
releaseIpamPoolAllocation_ipamPoolId :: Lens' ReleaseIpamPoolAllocation Text Source #
The ID of the IPAM pool which contains the allocation you want to release.
releaseIpamPoolAllocation_cidr :: Lens' ReleaseIpamPoolAllocation Text Source #
The CIDR of the allocation you want to release.
releaseIpamPoolAllocation_ipamPoolAllocationId :: Lens' ReleaseIpamPoolAllocation Text Source #
The ID of the allocation.
Destructuring the Response
data ReleaseIpamPoolAllocationResponse Source #
See: newReleaseIpamPoolAllocationResponse
smart constructor.
Constructors
ReleaseIpamPoolAllocationResponse' | |
Fields
|
Instances
newReleaseIpamPoolAllocationResponse Source #
Arguments
:: Int | |
-> ReleaseIpamPoolAllocationResponse |
Create a value of ReleaseIpamPoolAllocationResponse
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:success:ReleaseIpamPoolAllocationResponse'
, releaseIpamPoolAllocationResponse_success
- Indicates if the release was successful.
$sel:httpStatus:ReleaseIpamPoolAllocationResponse'
, releaseIpamPoolAllocationResponse_httpStatus
- The response's http status code.
Response Lenses
releaseIpamPoolAllocationResponse_success :: Lens' ReleaseIpamPoolAllocationResponse (Maybe Bool) Source #
Indicates if the release was successful.
releaseIpamPoolAllocationResponse_httpStatus :: Lens' ReleaseIpamPoolAllocationResponse Int Source #
The response's http status code.