cancelImportTask method

Future<CancelImportTaskOutput> cancelImportTask({
  1. required String taskIdentifier,
})

Deletes the specified import task.

May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter taskIdentifier : The unique identifier of the import task.

Implementation

Future<CancelImportTaskOutput> cancelImportTask({
  required String taskIdentifier,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/importtasks/${Uri.encodeComponent(taskIdentifier)}',
    exceptionFnMap: _exceptionFns,
  );
  return CancelImportTaskOutput.fromJson(response);
}