getDataSetImportTask method
Gets the status of a data set import task initiated with the CreateDataSetImportTask operation.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter applicationId :
The application identifier.
Parameter taskId :
The task identifier returned by the CreateDataSetImportTask
operation.
Implementation
Future<GetDataSetImportTaskResponse> getDataSetImportTask({
required String applicationId,
required String taskId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/applications/${Uri.encodeComponent(applicationId)}/dataset-import-tasks/${Uri.encodeComponent(taskId)}',
exceptionFnMap: _exceptionFns,
);
return GetDataSetImportTaskResponse.fromJson(response);
}