Skip to main content

import_jobs

Creates, updates, deletes, gets or lists an import_jobs resource.

Overview

Nameimport_jobs
TypeResource
Idaws.wisdom.import_jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_timestring (date-time)The timestamp when the import job was created.
external_source_configurationobjectThe configuration information of the external data source.
failed_record_reportstringThe link to donwload the information of resource data that failed to be imported.
import_job_idstringThe identifier of the import job. (pattern: <code>^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$</code>)
import_job_typestringThe type of the import job. (QUICK_RESPONSES)
knowledge_base_arnstringThe Amazon Resource Name (ARN) of the knowledge base. (pattern: <code>^arn:[a-z-]?:wisdom:[a-z0-9-]?:[0-9]{12}:[a-z-]*?/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}(?:/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})?$</code>)
knowledge_base_idstringThe identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Wisdom Content resource to it. (pattern: <code>^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$</code>)
last_modified_timestring (date-time)The timestamp when the import job data was last modified.
metadataobjectThe metadata fields of the imported Wisdom resources.
statusstringThe status of the import job. (START_IN_PROGRESS, FAILED, COMPLETE, DELETE_IN_PROGRESS, DELETE_FAILED, DELETED)
upload_idstringA pointer to the uploaded asset. This value is returned by StartContentUpload.
urlstringThe download link to the resource file that is uploaded to the import job.
url_expirystring (date-time)The expiration time of the URL as an epoch timestamp.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_import_jobselectimport_job_id, knowledge_base_id, regionRetrieves the started import job.
list_import_jobsselectknowledge_base_id, regionmaxResults, nextTokenLists information about import jobs.
delete_import_jobdeleteimport_job_id, knowledge_base_id, regionDeletes the quick response import job.

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
import_job_idstringThe identifier of the import job to be deleted.
knowledge_base_idstringThe identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Wisdom Content resource to it.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return per page.
nextTokenstringThe token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

SELECT examples

Retrieves the started import job.

SELECT
created_time,
external_source_configuration,
failed_record_report,
import_job_id,
import_job_type,
knowledge_base_arn,
knowledge_base_id,
last_modified_time,
metadata,
status,
upload_id,
url,
url_expiry
FROM aws.wisdom.import_jobs
WHERE import_job_id = '{{ import_job_id }}' -- required
AND knowledge_base_id = '{{ knowledge_base_id }}' -- required
AND region = '{{ region }}' -- required
;

DELETE examples

Deletes the quick response import job.

DELETE FROM aws.wisdom.import_jobs
WHERE import_job_id = '{{ import_job_id }}' --required
AND knowledge_base_id = '{{ knowledge_base_id }}' --required
AND region = '{{ region }}' --required
;