update_collection
¶
update_collection(
id: CollectionId,
*,
config_overrides: Optional[OpenSearchServerlessClientConfig] = None,
description: Optional[str] = None,
vector_options: Optional[VectorOptions] = None,
deletion_protection: Optional[DeletionProtection] = None,
client_token: Optional[ClientToken] = None,
) -> UpdateCollectionResponse
Updates an OpenSearch Serverless collection.
Parameters:
-
id(CollectionId) –The unique identifier of the collection.
-
description(Optional[str], default:None) –A description of the collection.
-
vector_options(Optional[VectorOptions], default:None) –Configuration options for vector search capabilities in the collection.
-
deletion_protection(Optional[DeletionProtection], default:None) –Indicates whether to enable or disable deletion protection for the collection. When set to
ENABLED, the collection cannot be deleted. -
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.
-
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
1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 | |