updateTaskExecution method

Future<void> updateTaskExecution({
  1. required Options options,
  2. required String taskExecutionArn,
})

Updates the configuration of a running DataSync task execution.

May throw InternalException. May throw InvalidRequestException.

Parameter taskExecutionArn : Specifies the Amazon Resource Name (ARN) of the task execution that you're updating.

Implementation

Future<void> updateTaskExecution({
  required Options options,
  required String taskExecutionArn,
}) async {
  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,
    },
  );
}