stopNotebookExecution method
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 {
ArgumentError.checkNotNull(notebookExecutionId, 'notebookExecutionId');
_s.validateStringLength(
'notebookExecutionId',
notebookExecutionId,
0,
256,
isRequired: true,
);
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,
},
);
}