deleteTask method

Future<void> deleteTask({
  1. required String taskArn,
})

Deletes a transfer task resource from DataSync.

May throw InternalException. May throw InvalidRequestException.

Parameter taskArn : Specifies the Amazon Resource Name (ARN) of the task that you want to delete.

Implementation

Future<void> deleteTask({
  required String taskArn,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'FmrsService.DeleteTask'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'TaskArn': taskArn,
    },
  );
}