start_import_job
async
¶
start_import_job(
knowledge_base_id: UuidOrArn,
import_job_type: ImportJobType,
upload_id: UploadId,
*,
config_overrides: Optional[AsyncQConnectClientConfig] = 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/async_q_connect.py
5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 | |