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 { ExportTransitGatewayRoutesRequest, ExportTransitGatewayRoutesResult } from "../models/models_5"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ExportTransitGatewayRoutesCommand}. */ export interface ExportTransitGatewayRoutesCommandInput extends ExportTransitGatewayRoutesRequest { } /** * @public * * The output of {@link ExportTransitGatewayRoutesCommand}. */ export interface ExportTransitGatewayRoutesCommandOutput extends ExportTransitGatewayRoutesResult, __MetadataBearer { } declare const ExportTransitGatewayRoutesCommand_base: { new (input: ExportTransitGatewayRoutesCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: ExportTransitGatewayRoutesCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Exports routes from the specified transit gateway route table to the specified S3 bucket. * By default, all routes are exported. Alternatively, you can filter by CIDR range.

*

The routes are saved to the specified bucket in a JSON file. For more information, see * Export route tables * to Amazon S3 in the Amazon Web Services Transit Gateways Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, ExportTransitGatewayRoutesCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, ExportTransitGatewayRoutesCommand } = 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 = { // ExportTransitGatewayRoutesRequest * TransitGatewayRouteTableId: "STRING_VALUE", // required * Filters: [ // FilterList * { // Filter * Name: "STRING_VALUE", * Values: [ // ValueStringList * "STRING_VALUE", * ], * }, * ], * S3Bucket: "STRING_VALUE", // required * DryRun: true || false, * }; * const command = new ExportTransitGatewayRoutesCommand(input); * const response = await client.send(command); * // { // ExportTransitGatewayRoutesResult * // S3Location: "STRING_VALUE", * // }; * * ``` * * @param ExportTransitGatewayRoutesCommandInput - {@link ExportTransitGatewayRoutesCommandInput} * @returns {@link ExportTransitGatewayRoutesCommandOutput} * @see {@link ExportTransitGatewayRoutesCommandInput} for command's `input` shape. * @see {@link ExportTransitGatewayRoutesCommandOutput} 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.

* * * @public */ export declare class ExportTransitGatewayRoutesCommand extends ExportTransitGatewayRoutesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ExportTransitGatewayRoutesRequest; output: ExportTransitGatewayRoutesResult; }; sdk: { input: ExportTransitGatewayRoutesCommandInput; output: ExportTransitGatewayRoutesCommandOutput; }; }; }