describeBatchLoadTask method

Future<DescribeBatchLoadTaskResponse> describeBatchLoadTask({
  1. required String taskId,
})

Returns information about the batch load task, including configurations, mappings, progress, and other details. Service quotas apply. See code sample for details.

May throw AccessDeniedException. May throw InternalServerException. May throw InvalidEndpointException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter taskId : The ID of the batch load task.

Implementation

Future<DescribeBatchLoadTaskResponse> describeBatchLoadTask({
  required String taskId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'Timestream_20181101.DescribeBatchLoadTask'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'TaskId': taskId,
    },
  );

  return DescribeBatchLoadTaskResponse.fromJson(jsonResponse.body);
}