Describes one or more attachments between resources and transit gateways. By default, all attachments are described.
Alternatively, you can filter the results by attachment ID, attachment state, resource ID, or resource owner.
example
Use a bare-bones client and the command you need to make an API call.
Describes one or more attachments between resources and transit gateways. By default, all attachments are described. Alternatively, you can filter the results by attachment ID, attachment state, resource ID, or resource owner.
Use a bare-bones client and the command you need to make an API call.
import { EC2Client, DescribeTransitGatewayAttachmentsCommand } from "@aws-sdk/client-ec2"; // ES Modules import // const { EC2Client, DescribeTransitGatewayAttachmentsCommand } = require("@aws-sdk/client-ec2"); // CommonJS import const client = new EC2Client(config); const command = new DescribeTransitGatewayAttachmentsCommand(input); const response = await client.send(command);
DescribeTransitGatewayAttachmentsCommandInput for command's
input
shape.DescribeTransitGatewayAttachmentsCommandOutput for command's
response
shape.config for EC2Client's
config
shape.