deleteLag method

Future<Lag> deleteLag({
  1. required String lagId,
})

Deletes the specified link aggregation group (LAG). You cannot delete a LAG if it has active virtual interfaces or hosted connections.

May throw DirectConnectServerException. May throw DirectConnectClientException.

Parameter lagId : The ID of the LAG.

Implementation

Future<Lag> deleteLag({
  required String lagId,
}) async {
  ArgumentError.checkNotNull(lagId, 'lagId');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'OvertureService.DeleteLag'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'lagId': lagId,
    },
  );

  return Lag.fromJson(jsonResponse.body);
}