getPendingJobExecutions method

Future<GetPendingJobExecutionsResponse> getPendingJobExecutions({
  1. required String thingName,
})

Gets the list of all jobs for a thing that are not in a terminal status.

May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ServiceUnavailableException. May throw CertificateValidationException.

Parameter thingName : The name of the thing that is executing the job.

Implementation

Future<GetPendingJobExecutionsResponse> getPendingJobExecutions({
  required String thingName,
}) async {
  ArgumentError.checkNotNull(thingName, 'thingName');
  _s.validateStringLength(
    'thingName',
    thingName,
    1,
    128,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/things/${Uri.encodeComponent(thingName)}/jobs',
    exceptionFnMap: _exceptionFns,
  );
  return GetPendingJobExecutionsResponse.fromJson(response);
}