getWorkflowRun method
Retrieves the metadata for a given workflow run. Job run history is accessible for 90 days for your workflow and job run.
May throw EntityNotFoundException.
May throw InternalServiceException.
May throw InvalidInputException.
May throw OperationTimeoutException.
Parameter name :
Name of the workflow being run.
Parameter runId :
The ID of the workflow run.
Parameter includeGraph :
Specifies whether to include the workflow graph in response or not.
Implementation
Future<GetWorkflowRunResponse> getWorkflowRun({
required String name,
required String runId,
bool? includeGraph,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSGlue.GetWorkflowRun'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Name': name,
'RunId': runId,
if (includeGraph != null) 'IncludeGraph': includeGraph,
},
);
return GetWorkflowRunResponse.fromJson(jsonResponse.body);
}