describeWorkflow method
Describes the specified workflow.
May throw InternalServiceError.
May throw InvalidRequestException.
May throw ResourceNotFoundException.
May throw ServiceUnavailableException.
Parameter workflowId :
A unique identifier for the workflow.
Implementation
Future<DescribeWorkflowResponse> describeWorkflow({
required String workflowId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'TransferService.DescribeWorkflow'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'WorkflowId': workflowId,
},
);
return DescribeWorkflowResponse.fromJson(jsonResponse.body);
}