resetJobBookmark method

Future<ResetJobBookmarkResponse> resetJobBookmark({
  1. required String jobName,
  2. String? runId,
})

Resets a bookmark entry.

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

Parameter jobName : The name of the job in question.

Parameter runId : The unique run identifier associated with this job run.

Implementation

Future<ResetJobBookmarkResponse> resetJobBookmark({
  required String jobName,
  String? runId,
}) async {
  ArgumentError.checkNotNull(jobName, 'jobName');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSGlue.ResetJobBookmark'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'JobName': jobName,
      if (runId != null) 'RunId': runId,
    },
  );

  return ResetJobBookmarkResponse.fromJson(jsonResponse.body);
}