stopWorkflowRun method
Stops the execution of the specified workflow run.
May throw EntityNotFoundException.
May throw IllegalWorkflowStateException.
May throw InternalServiceException.
May throw InvalidInputException.
May throw OperationTimeoutException.
Parameter name :
The name of the workflow to stop.
Parameter runId :
The ID of the workflow run to stop.
Implementation
Future<void> stopWorkflowRun({
required String name,
required String runId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSGlue.StopWorkflowRun'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Name': name,
'RunId': runId,
},
);
}