stopNotebookExecution method

Future<void> stopNotebookExecution({
  1. required String notebookExecutionId,
})

Stops a notebook execution.

May throw InternalServerError. May throw InvalidRequestException.

Parameter notebookExecutionId : The unique identifier of the notebook execution.

Implementation

Future<void> stopNotebookExecution({
  required String notebookExecutionId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'ElasticMapReduce.StopNotebookExecution'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'NotebookExecutionId': notebookExecutionId,
    },
  );
}