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.
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.
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);
ExportTransitGatewayRoutesCommandInput for command's
input
shape.ExportTransitGatewayRoutesCommandOutput for command's
response
shape.config for EC2Client's
config
shape.