Jump to Content

Class DeleteDirectConnectGatewayAssociationCommandProtected

Deletes the association between the specified Direct Connect gateway and virtual private gateway.

We recommend that you specify the associationID to delete the association. Alternatively, if you own virtual gateway and a Direct Connect gateway association, you can specify the virtualGatewayId and directConnectGatewayId to delete an association.

Example

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

import { DirectConnectClient, DeleteDirectConnectGatewayAssociationCommand } from "@aws-sdk/client-direct-connect"; // ES Modules import
// const { DirectConnectClient, DeleteDirectConnectGatewayAssociationCommand } = require("@aws-sdk/client-direct-connect"); // CommonJS import
const client = new DirectConnectClient(config);
const command = new DeleteDirectConnectGatewayAssociationCommand(input);
const response = await client.send(command);

Param

DeleteDirectConnectGatewayAssociationCommandInput

Returns

DeleteDirectConnectGatewayAssociationCommandOutput

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