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

Description

Detaches an internet gateway from a VPC, disabling connectivity between the internet and the VPC. The VPC must not contain any running instances with Elastic IP addresses or public IPv4 addresses.

Synopsis

Creating a Request

data DetachInternetGateway Source #

See: newDetachInternetGateway smart constructor.

Constructors

DetachInternetGateway' 

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.

  • vpcId :: Text

    The ID of the VPC.

Instances

Instances details
ToHeaders DetachInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.DetachInternetGateway

ToPath DetachInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.DetachInternetGateway

ToQuery DetachInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.DetachInternetGateway

AWSRequest DetachInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.DetachInternetGateway

Associated Types

type AWSResponse DetachInternetGateway #

Generic DetachInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.DetachInternetGateway

Associated Types

type Rep DetachInternetGateway :: Type -> Type #

Read DetachInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.DetachInternetGateway

Show DetachInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.DetachInternetGateway

NFData DetachInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.DetachInternetGateway

Methods

rnf :: DetachInternetGateway -> () #

Eq DetachInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.DetachInternetGateway

Hashable DetachInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.DetachInternetGateway

type AWSResponse DetachInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.DetachInternetGateway

type Rep DetachInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.DetachInternetGateway

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

newDetachInternetGateway Source #

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

DetachInternetGateway, detachInternetGateway_internetGatewayId - The ID of the internet gateway.

DetachInternetGateway, detachInternetGateway_vpcId - The ID of the VPC.

Request Lenses

detachInternetGateway_dryRun :: Lens' DetachInternetGateway (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 DetachInternetGatewayResponse Source #

See: newDetachInternetGatewayResponse smart constructor.

Instances

Instances details
Generic DetachInternetGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DetachInternetGateway

Associated Types

type Rep DetachInternetGatewayResponse :: Type -> Type #

Read DetachInternetGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DetachInternetGateway

Show DetachInternetGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DetachInternetGateway

NFData DetachInternetGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DetachInternetGateway

Eq DetachInternetGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DetachInternetGateway

type Rep DetachInternetGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DetachInternetGateway

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

newDetachInternetGatewayResponse :: DetachInternetGatewayResponse Source #

Create a value of DetachInternetGatewayResponse with all optional fields omitted.

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