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 InvalidInputException. May throw InternalServiceException. May throw OperationTimeoutException.

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

Implementation

Future<DeleteJobResponse> deleteJob({
  required String jobName,
}) async {
  ArgumentError.checkNotNull(jobName, 'jobName');
  _s.validateStringLength(
    'jobName',
    jobName,
    1,
    255,
    isRequired: true,
  );
  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);
}