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,
encryption_config: Optional[EncryptionConfig] = 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
1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 | |