create_ingestion_job
async
¶
create_ingestion_job(
collection_id: CollectionId,
ingestion_job_name: IngestionJobName,
index_name: IngestionIndexName,
source: IngestionJobSource,
*,
config_overrides: Optional[AsyncOpenSearchServerlessClientConfig] = None,
failure_index_name: Optional[IngestionIndexName] = None,
tags: Optional[Tags] = None,
client_token: Optional[ClientToken] = None,
) -> CreateIngestionJobResponse
Creates an ingestion job that performs a one-time bulk ingestion of data from an Amazon S3 bucket into an index in an OpenSearch Serverless collection. An ingestion job scans the source bucket, indexes the documents it finds, and then completes. To continuously ingest new data as it arrives, use CreateIngestionStream instead.
Parameters:
-
collection_id(CollectionId) –The unique identifier of the collection to ingest data into.
-
ingestion_job_name(IngestionJobName) –The name of the ingestion job. The name must be unique within the collection.
-
index_name(IngestionIndexName) –The name of the index to ingest documents into.
-
failure_index_name(Optional[IngestionIndexName], default:None) –The name of the index where documents that fail to be ingested are recorded.
-
source(IngestionJobSource) –The Amazon S3 source to ingest data from.
-
tags(Optional[Tags], default:None) –An arbitrary set of tags (key–value pairs) to associate with the ingestion job.
-
client_token(Optional[ClientToken], default:None) –Unique, case-sensitive identifier to ensure idempotency of the request.
Raises:
-
ConflictException–When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE, FAILED, or UPDATE_FAILED state.
-
InternalServerException–Thrown when an error internal to the service occurs while processing a request.
-
ResourceNotFoundException–Thrown when accessing or deleting a resource that does not exist.
-
ServiceQuotaExceededException–Thrown when you attempt to create more resources than the service allows based on service quotas.
-
ValidationException–Thrown when the HTTP request contains invalid input or is missing required input.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_opensearchserverless/_services/async_open_search_serverless.py
2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 | |