updateTaskExecution method
Updates execution of a task.
You can modify bandwidth throttling for a task execution that is running or queued. For more information, see Adjusting Bandwidth Throttling for a Task Execution.
May throw InvalidRequestException. May throw InternalException.
Parameter taskExecutionArn
:
The Amazon Resource Name (ARN) of the specific task execution that is
being updated.
Implementation
Future<void> updateTaskExecution({
required Options options,
required String taskExecutionArn,
}) async {
ArgumentError.checkNotNull(options, 'options');
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.UpdateTaskExecution'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Options': options,
'TaskExecutionArn': taskExecutionArn,
},
);
}