deleteTask method

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

Deletes a task.

May throw InvalidRequestException. May throw InternalException.

Parameter taskArn : The Amazon Resource Name (ARN) of the task to delete.

Implementation

Future<void> deleteTask({
  required String taskArn,
}) async {
  ArgumentError.checkNotNull(taskArn, 'taskArn');
  _s.validateStringLength(
    'taskArn',
    taskArn,
    0,
    128,
    isRequired: true,
  );
  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,
    },
  );
}