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

Description

Detaches a virtual private gateway from a VPC. You do this if you're planning to turn off the VPC and not use it anymore. You can confirm a virtual private gateway has been completely detached from a VPC by describing the virtual private gateway (any attachments to the virtual private gateway are also described).

You must wait for the attachment's state to switch to detached before you can delete the VPC or attach a different VPC to the virtual private gateway.

Synopsis

Creating a Request

data DetachVpnGateway Source #

Contains the parameters for DetachVpnGateway.

See: newDetachVpnGateway smart constructor.

Constructors

DetachVpnGateway' 

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.

  • vpcId :: Text

    The ID of the VPC.

  • vpnGatewayId :: Text

    The ID of the virtual private gateway.

Instances

Instances details
ToHeaders DetachVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.DetachVpnGateway

ToPath DetachVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.DetachVpnGateway

ToQuery DetachVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.DetachVpnGateway

AWSRequest DetachVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.DetachVpnGateway

Associated Types

type AWSResponse DetachVpnGateway #

Generic DetachVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.DetachVpnGateway

Associated Types

type Rep DetachVpnGateway :: Type -> Type #

Read DetachVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.DetachVpnGateway

Show DetachVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.DetachVpnGateway

NFData DetachVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.DetachVpnGateway

Methods

rnf :: DetachVpnGateway -> () #

Eq DetachVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.DetachVpnGateway

Hashable DetachVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.DetachVpnGateway

type AWSResponse DetachVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.DetachVpnGateway

type Rep DetachVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.DetachVpnGateway

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

newDetachVpnGateway Source #

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

DetachVpnGateway, detachVpnGateway_vpcId - The ID of the VPC.

DetachVpnGateway, detachVpnGateway_vpnGatewayId - The ID of the virtual private gateway.

Request Lenses

detachVpnGateway_dryRun :: Lens' DetachVpnGateway (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.

detachVpnGateway_vpnGatewayId :: Lens' DetachVpnGateway Text Source #

The ID of the virtual private gateway.

Destructuring the Response

data DetachVpnGatewayResponse Source #

See: newDetachVpnGatewayResponse smart constructor.

Instances

Instances details
Generic DetachVpnGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DetachVpnGateway

Associated Types

type Rep DetachVpnGatewayResponse :: Type -> Type #

Read DetachVpnGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DetachVpnGateway

Show DetachVpnGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DetachVpnGateway

NFData DetachVpnGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DetachVpnGateway

Eq DetachVpnGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DetachVpnGateway

type Rep DetachVpnGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DetachVpnGateway

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

newDetachVpnGatewayResponse :: DetachVpnGatewayResponse Source #

Create a value of DetachVpnGatewayResponse with all optional fields omitted.

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