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

Description

Deletes the specified internet gateway. You must detach the internet gateway from the VPC before you can delete it.

Synopsis

Creating a Request

data DeleteInternetGateway Source #

See: newDeleteInternetGateway smart constructor.

Constructors

DeleteInternetGateway' 

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.

  • internetGatewayId :: Text

    The ID of the internet gateway.

Instances

Instances details
ToHeaders DeleteInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteInternetGateway

ToPath DeleteInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteInternetGateway

ToQuery DeleteInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteInternetGateway

AWSRequest DeleteInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteInternetGateway

Associated Types

type AWSResponse DeleteInternetGateway #

Generic DeleteInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteInternetGateway

Associated Types

type Rep DeleteInternetGateway :: Type -> Type #

Read DeleteInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteInternetGateway

Show DeleteInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteInternetGateway

NFData DeleteInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteInternetGateway

Methods

rnf :: DeleteInternetGateway -> () #

Eq DeleteInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteInternetGateway

Hashable DeleteInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteInternetGateway

type AWSResponse DeleteInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteInternetGateway

type Rep DeleteInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteInternetGateway

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

newDeleteInternetGateway Source #

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

DeleteInternetGateway, deleteInternetGateway_internetGatewayId - The ID of the internet gateway.

Request Lenses

deleteInternetGateway_dryRun :: Lens' DeleteInternetGateway (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 DeleteInternetGatewayResponse Source #

See: newDeleteInternetGatewayResponse smart constructor.

Instances

Instances details
Generic DeleteInternetGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteInternetGateway

Associated Types

type Rep DeleteInternetGatewayResponse :: Type -> Type #

Read DeleteInternetGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteInternetGateway

Show DeleteInternetGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteInternetGateway

NFData DeleteInternetGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteInternetGateway

Eq DeleteInternetGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteInternetGateway

type Rep DeleteInternetGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteInternetGateway

type Rep DeleteInternetGatewayResponse = D1 ('MetaData "DeleteInternetGatewayResponse" "Amazonka.EC2.DeleteInternetGateway" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DeleteInternetGatewayResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDeleteInternetGatewayResponse :: DeleteInternetGatewayResponse Source #

Create a value of DeleteInternetGatewayResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.