Jump to Content

Class DescribeDirectConnectGatewayAttachmentsCommandProtected

Lists the attachments between your Direct Connect gateways and virtual interfaces. You must specify a Direct Connect gateway, a virtual interface, or both. If you specify a Direct Connect gateway, the response contains all virtual interfaces attached to the Direct Connect gateway. If you specify a virtual interface, the response contains all Direct Connect gateways attached to the virtual interface. If you specify both, the response contains the attachment between the Direct Connect gateway and the virtual interface.

Example

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

import { DirectConnectClient, DescribeDirectConnectGatewayAttachmentsCommand } from "@aws-sdk/client-direct-connect"; // ES Modules import
// const { DirectConnectClient, DescribeDirectConnectGatewayAttachmentsCommand } = require("@aws-sdk/client-direct-connect"); // CommonJS import
const client = new DirectConnectClient(config);
const input = { // DescribeDirectConnectGatewayAttachmentsRequest
directConnectGatewayId: "STRING_VALUE",
virtualInterfaceId: "STRING_VALUE",
maxResults: Number("int"),
nextToken: "STRING_VALUE",
};
const command = new DescribeDirectConnectGatewayAttachmentsCommand(input);
const response = await client.send(command);

Param

DescribeDirectConnectGatewayAttachmentsCommandInput

Returns

DescribeDirectConnectGatewayAttachmentsCommandOutput

See

Throws

DirectConnectClientException (client fault)

One or more parameters are not valid.

Throws

DirectConnectServerException (server fault)

A server-side error occurred.

Hierarchy

Constructors

Properties

Methods