stopTestRun method

Future<StopTestRunResponse> stopTestRun({
  1. required String serviceArn,
  2. required String testRunId,
})

Stops an in-progress test run.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ValidationException.

Parameter serviceArn : The ARN of the service the test run belongs to.

Parameter testRunId : The identifier of the test run to stop.

Implementation

Future<StopTestRunResponse> stopTestRun({
  required String serviceArn,
  required String testRunId,
}) async {
  final $payload = <String, dynamic>{
    'serviceArn': serviceArn,
    'testRunId': testRunId,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/v2/stop-test-run',
    exceptionFnMap: _exceptionFns,
  );
  return StopTestRunResponse.fromJson(response);
}