import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client"; import type { DisassociateRouteTableRequest } from "../models/models_5"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DisassociateRouteTableCommand}. */ export interface DisassociateRouteTableCommandInput extends DisassociateRouteTableRequest { } /** * @public * * The output of {@link DisassociateRouteTableCommand}. */ export interface DisassociateRouteTableCommandOutput extends __MetadataBearer { } declare const DisassociateRouteTableCommand_base: { new (input: DisassociateRouteTableCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DisassociateRouteTableCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Disassociates a subnet or gateway from a route table.

*

After you perform this action, the subnet no longer uses the routes in the route table. * Instead, it uses the routes in the VPC's main route table. For more information * about route tables, see Route * tables in the Amazon VPC User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, DisassociateRouteTableCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, DisassociateRouteTableCommand } = require("@aws-sdk/client-ec2"); // CommonJS import * // import type { EC2ClientConfig } from "@aws-sdk/client-ec2"; * const config = {}; // type is EC2ClientConfig * const client = new EC2Client(config); * const input = { // DisassociateRouteTableRequest * DryRun: true || false, * AssociationId: "STRING_VALUE", // required * }; * const command = new DisassociateRouteTableCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param DisassociateRouteTableCommandInput - {@link DisassociateRouteTableCommandInput} * @returns {@link DisassociateRouteTableCommandOutput} * @see {@link DisassociateRouteTableCommandInput} for command's `input` shape. * @see {@link DisassociateRouteTableCommandOutput} for command's `response` shape. * @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape. * * @throws {@link EC2ServiceException} *

Base exception class for all service exceptions from EC2 service.

* * * @example To disassociate a route table * ```javascript * // This example disassociates the specified route table from its associated subnet. * const input = { * AssociationId: "rtbassoc-781d0d1a" * }; * const command = new DisassociateRouteTableCommand(input); * const response = await client.send(command); * /* response is * { /* metadata only *\/ } * *\/ * ``` * * @public */ export declare class DisassociateRouteTableCommand extends DisassociateRouteTableCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DisassociateRouteTableRequest; output: {}; }; sdk: { input: DisassociateRouteTableCommandInput; output: DisassociateRouteTableCommandOutput; }; }; }