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

Description

Deletes the specified virtual private gateway. You must first detach the virtual private gateway from the VPC. Note that you don't need to delete the virtual private gateway if you plan to delete and recreate the VPN connection between your VPC and your network.

Synopsis

Creating a Request

data DeleteVpnGateway Source #

Contains the parameters for DeleteVpnGateway.

See: newDeleteVpnGateway smart constructor.

Constructors

DeleteVpnGateway' 

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.

  • vpnGatewayId :: Text

    The ID of the virtual private gateway.

Instances

Instances details
ToHeaders DeleteVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpnGateway

ToPath DeleteVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpnGateway

ToQuery DeleteVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpnGateway

AWSRequest DeleteVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpnGateway

Associated Types

type AWSResponse DeleteVpnGateway #

Generic DeleteVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpnGateway

Associated Types

type Rep DeleteVpnGateway :: Type -> Type #

Read DeleteVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpnGateway

Show DeleteVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpnGateway

NFData DeleteVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpnGateway

Methods

rnf :: DeleteVpnGateway -> () #

Eq DeleteVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpnGateway

Hashable DeleteVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpnGateway

type AWSResponse DeleteVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpnGateway

type Rep DeleteVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpnGateway

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

newDeleteVpnGateway Source #

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

DeleteVpnGateway, deleteVpnGateway_vpnGatewayId - The ID of the virtual private gateway.

Request Lenses

deleteVpnGateway_dryRun :: Lens' DeleteVpnGateway (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.

deleteVpnGateway_vpnGatewayId :: Lens' DeleteVpnGateway Text Source #

The ID of the virtual private gateway.

Destructuring the Response

data DeleteVpnGatewayResponse Source #

See: newDeleteVpnGatewayResponse smart constructor.

Instances

Instances details
Generic DeleteVpnGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpnGateway

Associated Types

type Rep DeleteVpnGatewayResponse :: Type -> Type #

Read DeleteVpnGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpnGateway

Show DeleteVpnGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpnGateway

NFData DeleteVpnGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpnGateway

Eq DeleteVpnGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpnGateway

type Rep DeleteVpnGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpnGateway

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

newDeleteVpnGatewayResponse :: DeleteVpnGatewayResponse Source #

Create a value of DeleteVpnGatewayResponse with all optional fields omitted.

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