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 { ReplaceRouteTableAssociationRequest, ReplaceRouteTableAssociationResult } from "../models/models_7"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ReplaceRouteTableAssociationCommand}. */ export interface ReplaceRouteTableAssociationCommandInput extends ReplaceRouteTableAssociationRequest { } /** * @public * * The output of {@link ReplaceRouteTableAssociationCommand}. */ export interface ReplaceRouteTableAssociationCommandOutput extends ReplaceRouteTableAssociationResult, __MetadataBearer { } declare const ReplaceRouteTableAssociationCommand_base: { new (input: ReplaceRouteTableAssociationCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: ReplaceRouteTableAssociationCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Changes the route table associated with a given subnet, internet gateway, or virtual private gateway in a VPC. After the operation * completes, the subnet or gateway uses the routes in the new route table. For more * information about route tables, see Route * tables in the Amazon VPC User Guide.

*

You can also use this operation to change which table is the main route table in the VPC. Specify the main route table's association ID and the route table ID of the new main route table.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, ReplaceRouteTableAssociationCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, ReplaceRouteTableAssociationCommand } = 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 = { // ReplaceRouteTableAssociationRequest * DryRun: true || false, * AssociationId: "STRING_VALUE", // required * RouteTableId: "STRING_VALUE", // required * }; * const command = new ReplaceRouteTableAssociationCommand(input); * const response = await client.send(command); * // { // ReplaceRouteTableAssociationResult * // NewAssociationId: "STRING_VALUE", * // AssociationState: { // RouteTableAssociationState * // State: "associating" || "associated" || "disassociating" || "disassociated" || "failed", * // StatusMessage: "STRING_VALUE", * // }, * // }; * * ``` * * @param ReplaceRouteTableAssociationCommandInput - {@link ReplaceRouteTableAssociationCommandInput} * @returns {@link ReplaceRouteTableAssociationCommandOutput} * @see {@link ReplaceRouteTableAssociationCommandInput} for command's `input` shape. * @see {@link ReplaceRouteTableAssociationCommandOutput} 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 replace the route table associated with a subnet * ```javascript * // This example associates the specified route table with the subnet for the specified route table association. * const input = { * AssociationId: "rtbassoc-781d0d1a", * RouteTableId: "rtb-22574640" * }; * const command = new ReplaceRouteTableAssociationCommand(input); * const response = await client.send(command); * /* response is * { * NewAssociationId: "rtbassoc-3a1f0f58" * } * *\/ * ``` * * @public */ export declare class ReplaceRouteTableAssociationCommand extends ReplaceRouteTableAssociationCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ReplaceRouteTableAssociationRequest; output: ReplaceRouteTableAssociationResult; }; sdk: { input: ReplaceRouteTableAssociationCommandInput; output: ReplaceRouteTableAssociationCommandOutput; }; }; }