listDataAutomationLibraryIngestionJobs method

Future<ListDataAutomationLibraryIngestionJobsResponse> listDataAutomationLibraryIngestionJobs({
  1. required String libraryArn,
  2. int? maxResults,
  3. String? nextToken,
})

Lists all data automation library ingestion jobs

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter libraryArn : ARN generated at the server side when a DataAutomationLibrary is created

Parameter nextToken : Pagination token for retrieving the next set of results

Implementation

Future<ListDataAutomationLibraryIngestionJobsResponse>
    listDataAutomationLibraryIngestionJobs({
  required String libraryArn,
  int? maxResults,
  String? nextToken,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    1000,
  );
  final $payload = <String, dynamic>{
    if (maxResults != null) 'maxResults': maxResults,
    if (nextToken != null) 'nextToken': nextToken,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri:
        '/data-automation-libraries/${Uri.encodeComponent(libraryArn)}/library-ingestion-jobs/',
    exceptionFnMap: _exceptionFns,
  );
  return ListDataAutomationLibraryIngestionJobsResponse.fromJson(response);
}