Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ExportTransitGatewayRoutesCommand

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 Transit Gateways.

example

Use a bare-bones client and the command you need to make an API call.

import { EC2Client, ExportTransitGatewayRoutesCommand } from "@aws-sdk/client-ec2"; // ES Modules import
// const { EC2Client, ExportTransitGatewayRoutesCommand } = require("@aws-sdk/client-ec2"); // CommonJS import
const client = new EC2Client(config);
const command = new ExportTransitGatewayRoutesCommand(input);
const response = await client.send(command);
see

ExportTransitGatewayRoutesCommandInput for command's input shape.

see

ExportTransitGatewayRoutesCommandOutput for command's response shape.

see

config for EC2Client's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: ExportTransitGatewayRoutesCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions