Jump to Content

Class UpdateLagCommandProtected

Updates the attributes of the specified link aggregation group (LAG).

You can update the following LAG attributes:

  • The name of the LAG.

  • The value for the minimum number of connections that must be operational for the LAG itself to be operational.

  • The LAG's MACsec encryption mode.

    Amazon Web Services assigns this value to each connection which is part of the LAG.

  • The tags

If you adjust the threshold value for the minimum number of operational connections, ensure that the new value does not cause the LAG to fall below the threshold and become non-operational.


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

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



DirectConnectClientException (client fault)

One or more parameters are not valid.


DirectConnectServerException (server fault)

A server-side error occurred.




middlewareStack: MiddlewareStack<UpdateLagCommandInput, UpdateLagCommandOutput>