describeLags method

Future<Lags> describeLags({
  1. String? lagId,
})

Describes all your link aggregation groups (LAG) or the specified LAG.

May throw DirectConnectServerException. May throw DirectConnectClientException.

Parameter lagId : The ID of the LAG.

Implementation

Future<Lags> describeLags({
  String? lagId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'OvertureService.DescribeLags'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (lagId != null) 'lagId': lagId,
    },
  );

  return Lags.fromJson(jsonResponse.body);
}