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.DeleteIpamPool

Description

Delete an IPAM pool.

You cannot delete an IPAM pool if there are allocations in it or CIDRs provisioned to it. To release allocations, see ReleaseIpamPoolAllocation. To deprovision pool CIDRs, see DeprovisionIpamPoolCidr.

For more information, see Delete a pool in the Amazon VPC IPAM User Guide.

Synopsis

Creating a Request

data DeleteIpamPool Source #

See: newDeleteIpamPool smart constructor.

Constructors

DeleteIpamPool' 

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 pool to delete.

Instances

Instances details
ToHeaders DeleteIpamPool Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamPool

ToPath DeleteIpamPool Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamPool

ToQuery DeleteIpamPool Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamPool

AWSRequest DeleteIpamPool Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamPool

Associated Types

type AWSResponse DeleteIpamPool #

Generic DeleteIpamPool Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamPool

Associated Types

type Rep DeleteIpamPool :: Type -> Type #

Read DeleteIpamPool Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamPool

Show DeleteIpamPool Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamPool

NFData DeleteIpamPool Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamPool

Methods

rnf :: DeleteIpamPool -> () #

Eq DeleteIpamPool Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamPool

Hashable DeleteIpamPool Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamPool

type AWSResponse DeleteIpamPool Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamPool

type Rep DeleteIpamPool Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamPool

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

newDeleteIpamPool Source #

Create a value of DeleteIpamPool 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:DeleteIpamPool', deleteIpamPool_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.

DeleteIpamPool, deleteIpamPool_ipamPoolId - The ID of the pool to delete.

Request Lenses

deleteIpamPool_dryRun :: Lens' DeleteIpamPool (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.

deleteIpamPool_ipamPoolId :: Lens' DeleteIpamPool Text Source #

The ID of the pool to delete.

Destructuring the Response

data DeleteIpamPoolResponse Source #

See: newDeleteIpamPoolResponse smart constructor.

Constructors

DeleteIpamPoolResponse' 

Fields

Instances

Instances details
Generic DeleteIpamPoolResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamPool

Associated Types

type Rep DeleteIpamPoolResponse :: Type -> Type #

Read DeleteIpamPoolResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamPool

Show DeleteIpamPoolResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamPool

NFData DeleteIpamPoolResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamPool

Methods

rnf :: DeleteIpamPoolResponse -> () #

Eq DeleteIpamPoolResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamPool

type Rep DeleteIpamPoolResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamPool

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

newDeleteIpamPoolResponse Source #

Create a value of DeleteIpamPoolResponse 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:ipamPool:DeleteIpamPoolResponse', deleteIpamPoolResponse_ipamPool - Information about the results of the deletion.

$sel:httpStatus:DeleteIpamPoolResponse', deleteIpamPoolResponse_httpStatus - The response's http status code.

Response Lenses

deleteIpamPoolResponse_ipamPool :: Lens' DeleteIpamPoolResponse (Maybe IpamPool) Source #

Information about the results of the deletion.