amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Creating a Request

data ReleaseIpamPoolAllocation Source #

See: newReleaseIpamPoolAllocation smart constructor.

Constructors

ReleaseIpamPoolAllocation' 

Fields

  • dryRun :: Maybe Bool

    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.

  • ipamPoolId :: Text

    The ID of the IPAM pool which contains the allocation you want to release.

  • cidr :: Text

    The CIDR of the allocation you want to release.

  • ipamPoolAllocationId :: Text

    The ID of the allocation.

Instances

Instances details
ToHeaders ReleaseIpamPoolAllocation Source # 
Instance details

Defined in Amazonka.EC2.ReleaseIpamPoolAllocation

ToPath ReleaseIpamPoolAllocation Source # 
Instance details

Defined in Amazonka.EC2.ReleaseIpamPoolAllocation

ToQuery ReleaseIpamPoolAllocation Source # 
Instance details

Defined in Amazonka.EC2.ReleaseIpamPoolAllocation

AWSRequest ReleaseIpamPoolAllocation Source # 
Instance details

Defined in Amazonka.EC2.ReleaseIpamPoolAllocation

Generic ReleaseIpamPoolAllocation Source # 
Instance details

Defined in Amazonka.EC2.ReleaseIpamPoolAllocation

Associated Types

type Rep ReleaseIpamPoolAllocation :: Type -> Type #

Read ReleaseIpamPoolAllocation Source # 
Instance details

Defined in Amazonka.EC2.ReleaseIpamPoolAllocation

Show ReleaseIpamPoolAllocation Source # 
Instance details

Defined in Amazonka.EC2.ReleaseIpamPoolAllocation

NFData ReleaseIpamPoolAllocation Source # 
Instance details

Defined in Amazonka.EC2.ReleaseIpamPoolAllocation

Eq ReleaseIpamPoolAllocation Source # 
Instance details

Defined in Amazonka.EC2.ReleaseIpamPoolAllocation

Hashable ReleaseIpamPoolAllocation Source # 
Instance details

Defined in Amazonka.EC2.ReleaseIpamPoolAllocation

type AWSResponse ReleaseIpamPoolAllocation Source # 
Instance details

Defined in Amazonka.EC2.ReleaseIpamPoolAllocation

type Rep ReleaseIpamPoolAllocation Source # 
Instance details

Defined in Amazonka.EC2.ReleaseIpamPoolAllocation

type Rep ReleaseIpamPoolAllocation = D1 ('MetaData "ReleaseIpamPoolAllocation" "Amazonka.EC2.ReleaseIpamPoolAllocation" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ReleaseIpamPoolAllocation'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "ipamPoolId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "cidr") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "ipamPoolAllocationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newReleaseIpamPoolAllocation Source #

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.

Destructuring the Response

data ReleaseIpamPoolAllocationResponse Source #

See: newReleaseIpamPoolAllocationResponse smart constructor.

Constructors

ReleaseIpamPoolAllocationResponse' 

Fields

Instances

Instances details
Generic ReleaseIpamPoolAllocationResponse Source # 
Instance details

Defined in Amazonka.EC2.ReleaseIpamPoolAllocation

Associated Types

type Rep ReleaseIpamPoolAllocationResponse :: Type -> Type #

Read ReleaseIpamPoolAllocationResponse Source # 
Instance details

Defined in Amazonka.EC2.ReleaseIpamPoolAllocation

Show ReleaseIpamPoolAllocationResponse Source # 
Instance details

Defined in Amazonka.EC2.ReleaseIpamPoolAllocation

NFData ReleaseIpamPoolAllocationResponse Source # 
Instance details

Defined in Amazonka.EC2.ReleaseIpamPoolAllocation

Eq ReleaseIpamPoolAllocationResponse Source # 
Instance details

Defined in Amazonka.EC2.ReleaseIpamPoolAllocation

type Rep ReleaseIpamPoolAllocationResponse Source # 
Instance details

Defined in Amazonka.EC2.ReleaseIpamPoolAllocation

type Rep ReleaseIpamPoolAllocationResponse = D1 ('MetaData "ReleaseIpamPoolAllocationResponse" "Amazonka.EC2.ReleaseIpamPoolAllocation" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ReleaseIpamPoolAllocationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "success") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newReleaseIpamPoolAllocationResponse Source #

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