QBusiness / Paginator / ListDataSourceSyncJobs
ListDataSourceSyncJobs#
- class QBusiness.Paginator.ListDataSourceSyncJobs#
paginator = client.get_paginator('list_data_source_sync_jobs')
- paginate(**kwargs)#
Creates an iterator that will paginate through responses from
QBusiness.Client.list_data_source_sync_jobs()
.See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( applicationId='string', dataSourceId='string', endTime=datetime(2015, 1, 1), indexId='string', startTime=datetime(2015, 1, 1), statusFilter='FAILED'|'SUCCEEDED'|'SYNCING'|'INCOMPLETE'|'STOPPING'|'ABORTED'|'SYNCING_INDEXING', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } )
- Parameters:
applicationId (string) –
[REQUIRED]
The identifier of the Amazon Q Business application connected to the data source.
dataSourceId (string) –
[REQUIRED]
The identifier of the data source connector.
endTime (datetime) – The end time of the data source connector sync.
indexId (string) –
[REQUIRED]
The identifier of the index used with the Amazon Q Business data source connector.
startTime (datetime) – The start time of the data source connector sync.
statusFilter (string) – Only returns synchronization jobs with the
Status
field equal to the specified status.PaginationConfig (dict) –
A dictionary that provides parameters to control pagination.
MaxItems (integer) –
The total number of items to return. If the total number of items available is more than the value specified in max-items then a
NextToken
will be provided in the output that you can use to resume pagination.PageSize (integer) –
The size of each page.
StartingToken (string) –
A token to specify where to start paginating. This is the
NextToken
from a previous response.
- Return type:
dict
- Returns:
Response Syntax
{ 'history': [ { 'dataSourceErrorCode': 'string', 'endTime': datetime(2015, 1, 1), 'error': { 'errorCode': 'InternalError'|'InvalidRequest'|'ResourceInactive'|'ResourceNotFound', 'errorMessage': 'string' }, 'executionId': 'string', 'metrics': { 'documentsAdded': 'string', 'documentsDeleted': 'string', 'documentsFailed': 'string', 'documentsModified': 'string', 'documentsScanned': 'string' }, 'startTime': datetime(2015, 1, 1), 'status': 'FAILED'|'SUCCEEDED'|'SYNCING'|'INCOMPLETE'|'STOPPING'|'ABORTED'|'SYNCING_INDEXING' }, ], 'NextToken': 'string' }
Response Structure
(dict) –
history (list) –
A history of synchronization jobs for the data source connector.
(dict) –
Provides information about an Amazon Q Business data source connector synchronization job.
dataSourceErrorCode (string) –
If the reason that the synchronization failed is due to an error with the underlying data source, this field contains a code that identifies the error.
endTime (datetime) –
The Unix timestamp when the synchronization job completed.
error (dict) –
If the
Status
field is set toFAILED
, theErrorCode
field indicates the reason the synchronization failed.errorCode (string) –
The code associated with the data source sync error.
errorMessage (string) –
The message explaining the data source sync error.
executionId (string) –
The identifier of a data source synchronization job.
metrics (dict) –
Maps a batch delete document request to a specific data source sync job. This is optional and should only be supplied when documents are deleted by a data source connector.
documentsAdded (string) –
The current count of documents added from the data source during the data source sync.
documentsDeleted (string) –
The current count of documents deleted from the data source during the data source sync.
documentsFailed (string) –
The current count of documents that failed to sync from the data source during the data source sync.
documentsModified (string) –
The current count of documents modified in the data source during the data source sync.
documentsScanned (string) –
The current count of documents crawled by the ongoing sync job in the data source.
startTime (datetime) –
The Unix time stamp when the data source synchronization job started.
status (string) –
The status of the synchronization job. When the
Status
field is set toSUCCEEDED
, the synchronization job is done. If the status code isFAILED
, theErrorCode
andErrorMessage
fields give you the reason for the failure.
NextToken (string) –
A token to resume pagination.