start_import_job
¶
start_import_job(
knowledge_base_id: UuidOrArn,
import_job_type: ImportJobType,
upload_id: UploadId,
*,
config_overrides: Optional[QConnectClientConfig] = None,
client_token: Optional[NonEmptyString] = None,
metadata: Optional[ContentMetadata] = None,
external_source_configuration: Optional[ExternalSourceConfiguration] = None,
) -> StartImportJobResponse
Start an asynchronous job to import Amazon Q in Connect resources from an uploaded source file. Before calling this API, use StartContentUpload to upload an asset that contains the resource data.
-
For importing Amazon Q in Connect quick responses, you need to upload a csv file including the quick responses. For information about how to format the csv file for importing quick responses, see Import quick responses.
Parameters:
-
knowledge_base_id(UuidOrArn) –The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
-
For importing Amazon Q in Connect quick responses, this should be a
QUICK_RESPONSEStype knowledge base.
-
-
import_job_type(ImportJobType) –The type of the import job.
-
For importing quick response resource, set the value to
QUICK_RESPONSES.
-
-
upload_id(UploadId) –A pointer to the uploaded asset. This value is returned by StartContentUpload.
-
client_token(Optional[NonEmptyString], default:None) –The tags used to organize, track, or control access for this resource.
-
metadata(Optional[ContentMetadata], default:None) –The metadata fields of the imported Amazon Q in Connect resources.
-
external_source_configuration(Optional[ExternalSourceConfiguration], default:None) –The configuration information of the external source that the resource data are imported from.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The request could not be processed because of conflict in the current state of the resource. For example, if you're using a
CreateAPI (such asCreateAssistant) that accepts name, a conflicting resource (usually with the same name) is being created or mutated. -
ResourceNotFoundException–The specified resource does not exist.
-
ServiceQuotaExceededException–You've exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use service quotas to request a service quota increase.
-
UnauthorizedException–You do not have permission to perform this action.
-
ValidationException–The input fails to satisfy the constraints specified by a service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_qconnect/_services/q_connect.py
5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 | |