stopBgpFailoverTest method

Future<StopBgpFailoverTestResponse> stopBgpFailoverTest({
  1. required String virtualInterfaceId,
})

Stops the virtual interface failover test.

May throw DirectConnectServerException. May throw DirectConnectClientException.

Parameter virtualInterfaceId : The ID of the virtual interface you no longer want to test.

Implementation

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

  return StopBgpFailoverTestResponse.fromJson(jsonResponse.body);
}