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

Description

Delete the scope for an IPAM. You cannot delete the default scopes.

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

Synopsis

Creating a Request

data DeleteIpamScope Source #

See: newDeleteIpamScope smart constructor.

Constructors

DeleteIpamScope' 

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.

  • ipamScopeId :: Text

    The ID of the scope to delete.

Instances

Instances details
ToHeaders DeleteIpamScope Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamScope

ToPath DeleteIpamScope Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamScope

ToQuery DeleteIpamScope Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamScope

AWSRequest DeleteIpamScope Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamScope

Associated Types

type AWSResponse DeleteIpamScope #

Generic DeleteIpamScope Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamScope

Associated Types

type Rep DeleteIpamScope :: Type -> Type #

Read DeleteIpamScope Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamScope

Show DeleteIpamScope Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamScope

NFData DeleteIpamScope Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamScope

Methods

rnf :: DeleteIpamScope -> () #

Eq DeleteIpamScope Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamScope

Hashable DeleteIpamScope Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamScope

type AWSResponse DeleteIpamScope Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamScope

type Rep DeleteIpamScope Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamScope

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

newDeleteIpamScope Source #

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

DeleteIpamScope, deleteIpamScope_ipamScopeId - The ID of the scope to delete.

Request Lenses

deleteIpamScope_dryRun :: Lens' DeleteIpamScope (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.

Destructuring the Response

data DeleteIpamScopeResponse Source #

See: newDeleteIpamScopeResponse smart constructor.

Constructors

DeleteIpamScopeResponse' 

Fields

Instances

Instances details
Generic DeleteIpamScopeResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamScope

Associated Types

type Rep DeleteIpamScopeResponse :: Type -> Type #

Read DeleteIpamScopeResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamScope

Show DeleteIpamScopeResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamScope

NFData DeleteIpamScopeResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamScope

Methods

rnf :: DeleteIpamScopeResponse -> () #

Eq DeleteIpamScopeResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamScope

type Rep DeleteIpamScopeResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteIpamScope

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

newDeleteIpamScopeResponse Source #

Create a value of DeleteIpamScopeResponse 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:ipamScope:DeleteIpamScopeResponse', deleteIpamScopeResponse_ipamScope - Information about the results of the deletion.

$sel:httpStatus:DeleteIpamScopeResponse', deleteIpamScopeResponse_httpStatus - The response's http status code.

Response Lenses

deleteIpamScopeResponse_ipamScope :: Lens' DeleteIpamScopeResponse (Maybe IpamScope) Source #

Information about the results of the deletion.