cancelExportTask method

Future<ExportTask> cancelExportTask({
  1. required String exportTaskIdentifier,
})

Cancels an export task in progress that is exporting a snapshot to Amazon S3. Any data that has already been written to the S3 bucket isn't removed.

May throw ExportTaskNotFoundFault. May throw InvalidExportTaskStateFault.

Parameter exportTaskIdentifier : The identifier of the snapshot export task to cancel.

Implementation

Future<ExportTask> cancelExportTask({
  required String exportTaskIdentifier,
}) async {
  ArgumentError.checkNotNull(exportTaskIdentifier, 'exportTaskIdentifier');
  final $request = <String, dynamic>{};
  $request['ExportTaskIdentifier'] = exportTaskIdentifier;
  final $result = await _protocol.send(
    $request,
    action: 'CancelExportTask',
    version: '2014-10-31',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['CancelExportTaskMessage'],
    shapes: shapes,
    resultWrapper: 'CancelExportTaskResult',
  );
  return ExportTask.fromXml($result);
}