deleteJob method

Future<DeleteJobResponse> deleteJob({
  1. required String jobName,
})

Deletes a specified job definition. If the job definition is not found, no exception is thrown.

May throw InternalServiceException. May throw InvalidInputException. May throw OperationTimeoutException.

Parameter jobName : The name of the job definition to delete.

Implementation

Future<DeleteJobResponse> deleteJob({
  required String jobName,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSGlue.DeleteJob'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'JobName': jobName,
    },
  );

  return DeleteJobResponse.fromJson(jsonResponse.body);
}