Skip to main content

data_source_sync_jobs

Creates, updates, deletes, gets or lists a data_source_sync_jobs resource.

Overview

Namedata_source_sync_jobs
TypeResource
Idaws.qbusiness.data_source_sync_jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
data_source_error_codestringIf 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.
end_timestring (date-time)The Unix timestamp when the synchronization job completed.
errorobjectProvides information about a Amazon Q Business request error.
execution_idstringThe identifier of a data source synchronization job. (pattern: <code>[a-zA-Z0-9][a-zA-Z0-9-]{35}</code>)
metricsobjectMaps 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.
start_timestring (date-time)The Unix time stamp when the data source synchronization job started.
statusstringThe status of the synchronization job. When the Status field is set to SUCCEEDED, the synchronization job is done. If the status code is FAILED, the ErrorCode and ErrorMessage fields give you the reason for the failure. (FAILED, SUCCEEDED, SYNCING, INCOMPLETE, STOPPING, ABORTED, SYNCING_INDEXING)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_data_source_sync_jobsselectdata_source_id, application_id, index_id, regionnextToken, maxResults, startTime, endTime, syncStatusGet information about an Amazon Q Business data source connector synchronization.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
application_idstringThe identifier of the Amazon Q Business application connected to the data source.
data_source_idstringThe identifier of the data source connector.
index_idstringThe identifier of the index used with the Amazon Q Business data source connector.
regionstringAWS region (default: us-east-1)
endTimestring (date-time)The end time of the data source connector sync.
maxResultsintegerThe maximum number of synchronization jobs to return in the response.
nextTokenstringIf the maxResults response was incpmplete because there is more data to retriever, Amazon Q Business returns a pagination token in the response. You can use this pagination token to retrieve the next set of responses.
startTimestring (date-time)The start time of the data source connector sync.
syncStatusstringOnly returns synchronization jobs with the Status field equal to the specified status.

SELECT examples

Get information about an Amazon Q Business data source connector synchronization.

SELECT
data_source_error_code,
end_time,
error,
execution_id,
metrics,
start_time,
status
FROM aws.qbusiness.data_source_sync_jobs
WHERE data_source_id = '{{ data_source_id }}' -- required
AND application_id = '{{ application_id }}' -- required
AND index_id = '{{ index_id }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
AND startTime = '{{ startTime }}'
AND endTime = '{{ endTime }}'
AND syncStatus = '{{ syncStatus }}'
;