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

Description

Deletes the specified customer gateway. You must delete the VPN connection before you can delete the customer gateway.

Synopsis

Creating a Request

data DeleteCustomerGateway Source #

Contains the parameters for DeleteCustomerGateway.

See: newDeleteCustomerGateway smart constructor.

Constructors

DeleteCustomerGateway' 

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.

  • customerGatewayId :: Text

    The ID of the customer gateway.

Instances

Instances details
ToHeaders DeleteCustomerGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteCustomerGateway

ToPath DeleteCustomerGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteCustomerGateway

ToQuery DeleteCustomerGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteCustomerGateway

AWSRequest DeleteCustomerGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteCustomerGateway

Associated Types

type AWSResponse DeleteCustomerGateway #

Generic DeleteCustomerGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteCustomerGateway

Associated Types

type Rep DeleteCustomerGateway :: Type -> Type #

Read DeleteCustomerGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteCustomerGateway

Show DeleteCustomerGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteCustomerGateway

NFData DeleteCustomerGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteCustomerGateway

Methods

rnf :: DeleteCustomerGateway -> () #

Eq DeleteCustomerGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteCustomerGateway

Hashable DeleteCustomerGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteCustomerGateway

type AWSResponse DeleteCustomerGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteCustomerGateway

type Rep DeleteCustomerGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteCustomerGateway

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

newDeleteCustomerGateway Source #

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

DeleteCustomerGateway, deleteCustomerGateway_customerGatewayId - The ID of the customer gateway.

Request Lenses

deleteCustomerGateway_dryRun :: Lens' DeleteCustomerGateway (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 DeleteCustomerGatewayResponse Source #

See: newDeleteCustomerGatewayResponse smart constructor.

Instances

Instances details
Generic DeleteCustomerGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteCustomerGateway

Associated Types

type Rep DeleteCustomerGatewayResponse :: Type -> Type #

Read DeleteCustomerGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteCustomerGateway

Show DeleteCustomerGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteCustomerGateway

NFData DeleteCustomerGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteCustomerGateway

Eq DeleteCustomerGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteCustomerGateway

type Rep DeleteCustomerGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteCustomerGateway

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

newDeleteCustomerGatewayResponse :: DeleteCustomerGatewayResponse Source #

Create a value of DeleteCustomerGatewayResponse with all optional fields omitted.

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