start_import_job
¶
start_import_job(
knowledge_base_id: UuidOrArn,
import_job_type: ImportJobType,
upload_id: UploadId,
*,
config_overrides: Optional[WisdomClientConfig] = None,
client_token: Optional[NonEmptyString] = None,
metadata: Optional[ContentMetadata] = None,
external_source_configuration: Optional[ExternalSourceConfiguration] = None,
) -> StartImportJobResponse
Start an asynchronous job to import Wisdom resources from an uploaded source file. Before calling this API, use StartContentUpload to upload an asset that contains the resource data.
-
For importing Wisdom 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. This should not be a QUICK_RESPONSES type knowledge base if you're storing Wisdom Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.
-
For importing Wisdom 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 Wisdom 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.
-
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_wisdom/_services/wisdom.py
2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 | |