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

Description

Deletes the specified NAT gateway. Deleting a public NAT gateway disassociates its Elastic IP address, but does not release the address from your account. Deleting a NAT gateway does not delete any NAT gateway routes in your route tables.

Synopsis

Creating a Request

data DeleteNatGateway Source #

See: newDeleteNatGateway smart constructor.

Constructors

DeleteNatGateway' 

Fields

  • dryRun :: Maybe Bool

    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.

  • natGatewayId :: Text

    The ID of the NAT gateway.

Instances

Instances details
ToHeaders DeleteNatGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteNatGateway

ToPath DeleteNatGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteNatGateway

ToQuery DeleteNatGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteNatGateway

AWSRequest DeleteNatGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteNatGateway

Associated Types

type AWSResponse DeleteNatGateway #

Generic DeleteNatGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteNatGateway

Associated Types

type Rep DeleteNatGateway :: Type -> Type #

Read DeleteNatGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteNatGateway

Show DeleteNatGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteNatGateway

NFData DeleteNatGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteNatGateway

Methods

rnf :: DeleteNatGateway -> () #

Eq DeleteNatGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteNatGateway

Hashable DeleteNatGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteNatGateway

type AWSResponse DeleteNatGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteNatGateway

type Rep DeleteNatGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteNatGateway

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

newDeleteNatGateway Source #

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

DeleteNatGateway, deleteNatGateway_natGatewayId - The ID of the NAT gateway.

Request Lenses

deleteNatGateway_dryRun :: Lens' DeleteNatGateway (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.

Destructuring the Response

data DeleteNatGatewayResponse Source #

See: newDeleteNatGatewayResponse smart constructor.

Constructors

DeleteNatGatewayResponse' 

Fields

Instances

Instances details
Generic DeleteNatGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteNatGateway

Associated Types

type Rep DeleteNatGatewayResponse :: Type -> Type #

Read DeleteNatGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteNatGateway

Show DeleteNatGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteNatGateway

NFData DeleteNatGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteNatGateway

Eq DeleteNatGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteNatGateway

type Rep DeleteNatGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteNatGateway

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

newDeleteNatGatewayResponse Source #

Create a value of DeleteNatGatewayResponse 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:

DeleteNatGateway, deleteNatGatewayResponse_natGatewayId - The ID of the NAT gateway.

$sel:httpStatus:DeleteNatGatewayResponse', deleteNatGatewayResponse_httpStatus - The response's http status code.

Response Lenses