Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DescribeTransitGatewayAttachmentsCommand

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.

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);
see

DescribeTransitGatewayAttachmentsCommandInput for command's input shape.

see

DescribeTransitGatewayAttachmentsCommandOutput for command's response shape.

see

config for EC2Client's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: DescribeTransitGatewayAttachmentsCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions