Lists the associations between your Direct Connect gateways and virtual private gateways and transit gateways. You must specify one of the following:
A Direct Connect gateway
The response contains all virtual private gateways and transit gateways associated with the Direct Connect gateway.
A virtual private gateway
The response contains the Direct Connect gateway.
A transit gateway
A Direct Connect gateway and a virtual private gateway
The response contains the association between the Direct Connect gateway and virtual private gateway.
A Direct Connect gateway and a transit gateway
The response contains the association between the Direct Connect gateway and transit gateway.
Use a bare-bones client and the command you need to make an API call.
import { DirectConnectClient, DescribeDirectConnectGatewayAssociationsCommand } from "@aws-sdk/client-direct-connect"; // ES Modules import // const { DirectConnectClient, DescribeDirectConnectGatewayAssociationsCommand } = require("@aws-sdk/client-direct-connect"); // CommonJS import const client = new DirectConnectClient(config); const command = new DescribeDirectConnectGatewayAssociationsCommand(input); const response = await client.send(command);
DescribeDirectConnectGatewayAssociationsCommandInput for command's input shape.
input
DescribeDirectConnectGatewayAssociationsCommandOutput for command's response shape.
response
config for DirectConnectClient's config shape.
config
Lists the associations between your Direct Connect gateways and virtual private gateways and transit gateways. You must specify one of the following:
A Direct Connect gateway
The response contains all virtual private gateways and transit gateways associated with the Direct Connect gateway.
A virtual private gateway
The response contains the Direct Connect gateway.
A transit gateway
The response contains the Direct Connect gateway.
A Direct Connect gateway and a virtual private gateway
The response contains the association between the Direct Connect gateway and virtual private gateway.
A Direct Connect gateway and a transit gateway
The response contains the association between the Direct Connect gateway and transit gateway.
Use a bare-bones client and the command you need to make an API call.
import { DirectConnectClient, DescribeDirectConnectGatewayAssociationsCommand } from "@aws-sdk/client-direct-connect"; // ES Modules import // const { DirectConnectClient, DescribeDirectConnectGatewayAssociationsCommand } = require("@aws-sdk/client-direct-connect"); // CommonJS import const client = new DirectConnectClient(config); const command = new DescribeDirectConnectGatewayAssociationsCommand(input); const response = await client.send(command);
DescribeDirectConnectGatewayAssociationsCommandInput for command's
input
shape.DescribeDirectConnectGatewayAssociationsCommandOutput for command's
response
shape.config for DirectConnectClient's
config
shape.