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

Description

Deletes a carrier gateway.

If you do not delete the route that contains the carrier gateway as the Target, the route is a blackhole route. For information about how to delete a route, see DeleteRoute.

Synopsis

Creating a Request

data DeleteCarrierGateway Source #

See: newDeleteCarrierGateway smart constructor.

Constructors

DeleteCarrierGateway' 

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.

  • carrierGatewayId :: Text

    The ID of the carrier gateway.

Instances

Instances details
ToHeaders DeleteCarrierGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteCarrierGateway

ToPath DeleteCarrierGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteCarrierGateway

ToQuery DeleteCarrierGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteCarrierGateway

AWSRequest DeleteCarrierGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteCarrierGateway

Associated Types

type AWSResponse DeleteCarrierGateway #

Generic DeleteCarrierGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteCarrierGateway

Associated Types

type Rep DeleteCarrierGateway :: Type -> Type #

Read DeleteCarrierGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteCarrierGateway

Show DeleteCarrierGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteCarrierGateway

NFData DeleteCarrierGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteCarrierGateway

Methods

rnf :: DeleteCarrierGateway -> () #

Eq DeleteCarrierGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteCarrierGateway

Hashable DeleteCarrierGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteCarrierGateway

type AWSResponse DeleteCarrierGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteCarrierGateway

type Rep DeleteCarrierGateway Source # 
Instance details

Defined in Amazonka.EC2.DeleteCarrierGateway

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

newDeleteCarrierGateway Source #

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

DeleteCarrierGateway, deleteCarrierGateway_carrierGatewayId - The ID of the carrier gateway.

Request Lenses

deleteCarrierGateway_dryRun :: Lens' DeleteCarrierGateway (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 DeleteCarrierGatewayResponse Source #

See: newDeleteCarrierGatewayResponse smart constructor.

Constructors

DeleteCarrierGatewayResponse' 

Fields

Instances

Instances details
Generic DeleteCarrierGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteCarrierGateway

Associated Types

type Rep DeleteCarrierGatewayResponse :: Type -> Type #

Read DeleteCarrierGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteCarrierGateway

Show DeleteCarrierGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteCarrierGateway

NFData DeleteCarrierGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteCarrierGateway

Eq DeleteCarrierGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteCarrierGateway

type Rep DeleteCarrierGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteCarrierGateway

type Rep DeleteCarrierGatewayResponse = D1 ('MetaData "DeleteCarrierGatewayResponse" "Amazonka.EC2.DeleteCarrierGateway" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DeleteCarrierGatewayResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "carrierGateway") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CarrierGateway)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDeleteCarrierGatewayResponse Source #

Create a value of DeleteCarrierGatewayResponse 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:carrierGateway:DeleteCarrierGatewayResponse', deleteCarrierGatewayResponse_carrierGateway - Information about the carrier gateway.

$sel:httpStatus:DeleteCarrierGatewayResponse', deleteCarrierGatewayResponse_httpStatus - The response's http status code.

Response Lenses