Jump to Content

New API Documentation - Developer Preview Available

We are excited to announce the developer preview of our new API documentation for AWS SDK for JavaScript v3. Please follow instructions on the landing page to leave us your feedback.

Class DescribeVirtualGatewaysCommandProtected

Lists the virtual private gateways owned by the Amazon Web Services account.

You can create one or more Direct Connect private virtual interfaces linked to a virtual private gateway.

Example

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

import { DirectConnectClient, DescribeVirtualGatewaysCommand } from "@aws-sdk/client-direct-connect"; // ES Modules import
// const { DirectConnectClient, DescribeVirtualGatewaysCommand } = require("@aws-sdk/client-direct-connect"); // CommonJS import
const client = new DirectConnectClient(config);
const input = {};
const command = new DescribeVirtualGatewaysCommand(input);
const response = await client.send(command);
// { // VirtualGateways
// virtualGateways: [ // VirtualGatewayList
// { // VirtualGateway
// virtualGatewayId: "STRING_VALUE",
// virtualGatewayState: "STRING_VALUE",
// },
// ],
// };

Param

DescribeVirtualGatewaysCommandInput

Returns

DescribeVirtualGatewaysCommandOutput

See

Throws

DirectConnectClientException (client fault)

One or more parameters are not valid.

Throws

DirectConnectServerException (server fault)

A server-side error occurred.

Throws

DirectConnectServiceException

Base exception class for all service exceptions from DirectConnect service.

Hierarchy

Constructors

Properties

Methods