Skip to content

DataSourceSyncJob

Source code in docs_src/capo_kendra/types/data_source_sync_job.py
class DataSourceSyncJob(TypedDict, closed=True):
    execution_id: NotRequired["capo_kendra.types.string.String"]
    """<p>A identifier for the synchronization job.</p>"""
    start_time: NotRequired["capo_kendra.types.timestamp.Timestamp"]
    """<p>The Unix timestamp when the synchronization job started.</p>"""
    end_time: NotRequired["capo_kendra.types.timestamp.Timestamp"]
    """<p>The Unix timestamp when the synchronization job completed.</p>"""
    status: NotRequired[
        "capo_kendra.types.data_source_sync_job_status.DataSourceSyncJobStatus"
    ]
    """<p>The execution status of the synchronization job. When the <code>Status</code> field is set to <code>SUCCEEDED</code>, the synchronization job is done. If the status code is set to <code>FAILED</code>, the <code>ErrorCode</code> and <code>ErrorMessage</code> fields give you the reason for the failure.</p>"""
    error_message: NotRequired["capo_kendra.types.error_message.ErrorMessage"]
    """<p>If the <code>Status</code> field is set to <code>ERROR</code>, the <code>ErrorMessage</code> field contains a description of the error that caused the synchronization to fail.</p>"""
    error_code: NotRequired["capo_kendra.types.error_code.ErrorCode"]
    """<p>If the <code>Status</code> field is set to <code>FAILED</code>, the <code>ErrorCode</code> field indicates the reason the synchronization failed.</p>"""
    data_source_error_code: NotRequired["capo_kendra.types.string.String"]
    """<p>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.</p>"""
    metrics: NotRequired[
        "capo_kendra.types.data_source_sync_job_metrics.DataSourceSyncJobMetrics"
    ]
    """<p>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.</p>"""

data_source_error_code instance-attribute

data_source_error_code: NotRequired[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.

end_time instance-attribute

end_time: NotRequired[Timestamp]

The Unix timestamp when the synchronization job completed.

error_code instance-attribute

error_code: NotRequired[ErrorCode]

If the Status field is set to FAILED, the ErrorCode field indicates the reason the synchronization failed.

error_message instance-attribute

error_message: NotRequired[ErrorMessage]

If the Status field is set to ERROR, the ErrorMessage field contains a description of the error that caused the synchronization to fail.

execution_id instance-attribute

execution_id: NotRequired[String]

A identifier for the synchronization job.

metrics instance-attribute

metrics: NotRequired[DataSourceSyncJobMetrics]

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.

start_time instance-attribute

start_time: NotRequired[Timestamp]

The Unix timestamp when the synchronization job started.

status instance-attribute

status: NotRequired[DataSourceSyncJobStatus]

The execution status of the synchronization job. When the Status field is set to SUCCEEDED, the synchronization job is done. If the status code is set to FAILED, the ErrorCode and ErrorMessage fields give you the reason for the failure.