create_ingestion_stream
¶
create_ingestion_stream(
collection_id: CollectionId,
ingestion_stream_name: IngestionStreamName,
index_name: IngestionIndexName,
source: IngestionStreamSource,
role_arn: RoleArn,
*,
config_overrides: Optional[OpenSearchServerlessClientConfig] = None,
failure_index_name: Optional[IngestionIndexName] = None,
tags: Optional[Tags] = None,
client_token: Optional[ClientToken] = None,
) -> CreateIngestionStreamResponse
Creates an ingestion stream that continuously ingests data from an Amazon S3 bucket into an index in an OpenSearch Serverless collection. An ingestion stream processes Amazon S3 event notifications delivered to an Amazon SQS queue and ingests new objects as they arrive. The stream continues to ingest data until you delete it. To perform a one-time bulk ingestion instead, use CreateIngestionJob.
Parameters:
-
collection_id(CollectionId) –The unique identifier of the collection to ingest data into.
-
ingestion_stream_name(IngestionStreamName) –The name of the ingestion stream. 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(IngestionStreamSource) –The Amazon S3 source to ingest data from, including the Amazon SQS queue that receives S3 event notifications.
-
role_arn(RoleArn) –The Amazon Resource Name (ARN) of the IAM role that OpenSearch Serverless assumes to read data from the source. The role must be in the same account as the collection.
-
tags(Optional[Tags], default:None) –An arbitrary set of tags (key–value pairs) to associate with the ingestion stream.
-
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/open_search_serverless.py
2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 | |