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

Description

Deletes the specified route table. You must disassociate the route table from any subnets before you can delete it. You can't delete the main route table.

Synopsis

Creating a Request

data DeleteRouteTable Source #

See: newDeleteRouteTable smart constructor.

Constructors

DeleteRouteTable' 

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.

  • routeTableId :: Text

    The ID of the route table.

Instances

Instances details
ToHeaders DeleteRouteTable Source # 
Instance details

Defined in Amazonka.EC2.DeleteRouteTable

ToPath DeleteRouteTable Source # 
Instance details

Defined in Amazonka.EC2.DeleteRouteTable

ToQuery DeleteRouteTable Source # 
Instance details

Defined in Amazonka.EC2.DeleteRouteTable

AWSRequest DeleteRouteTable Source # 
Instance details

Defined in Amazonka.EC2.DeleteRouteTable

Associated Types

type AWSResponse DeleteRouteTable #

Generic DeleteRouteTable Source # 
Instance details

Defined in Amazonka.EC2.DeleteRouteTable

Associated Types

type Rep DeleteRouteTable :: Type -> Type #

Read DeleteRouteTable Source # 
Instance details

Defined in Amazonka.EC2.DeleteRouteTable

Show DeleteRouteTable Source # 
Instance details

Defined in Amazonka.EC2.DeleteRouteTable

NFData DeleteRouteTable Source # 
Instance details

Defined in Amazonka.EC2.DeleteRouteTable

Methods

rnf :: DeleteRouteTable -> () #

Eq DeleteRouteTable Source # 
Instance details

Defined in Amazonka.EC2.DeleteRouteTable

Hashable DeleteRouteTable Source # 
Instance details

Defined in Amazonka.EC2.DeleteRouteTable

type AWSResponse DeleteRouteTable Source # 
Instance details

Defined in Amazonka.EC2.DeleteRouteTable

type Rep DeleteRouteTable Source # 
Instance details

Defined in Amazonka.EC2.DeleteRouteTable

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

newDeleteRouteTable Source #

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

DeleteRouteTable, deleteRouteTable_routeTableId - The ID of the route table.

Request Lenses

deleteRouteTable_dryRun :: Lens' DeleteRouteTable (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 DeleteRouteTableResponse Source #

See: newDeleteRouteTableResponse smart constructor.

Instances

Instances details
Generic DeleteRouteTableResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteRouteTable

Associated Types

type Rep DeleteRouteTableResponse :: Type -> Type #

Read DeleteRouteTableResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteRouteTable

Show DeleteRouteTableResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteRouteTable

NFData DeleteRouteTableResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteRouteTable

Eq DeleteRouteTableResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteRouteTable

type Rep DeleteRouteTableResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteRouteTable

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

newDeleteRouteTableResponse :: DeleteRouteTableResponse Source #

Create a value of DeleteRouteTableResponse with all optional fields omitted.

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