describeTaskExecution method
Returns detailed metadata about a task that is being executed.
May throw InvalidRequestException. May throw InternalException.
Parameter taskExecutionArn
:
The Amazon Resource Name (ARN) of the task that is being executed.
Implementation
Future<DescribeTaskExecutionResponse> describeTaskExecution({
required String taskExecutionArn,
}) async {
ArgumentError.checkNotNull(taskExecutionArn, 'taskExecutionArn');
_s.validateStringLength(
'taskExecutionArn',
taskExecutionArn,
0,
128,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'FmrsService.DescribeTaskExecution'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'TaskExecutionArn': taskExecutionArn,
},
);
return DescribeTaskExecutionResponse.fromJson(jsonResponse.body);
}