update_collection
async
¶
update_collection(
id: CollectionId,
*,
config_overrides: Optional[AsyncOpenSearchServerlessClientConfig] = 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/async_open_search_serverless.py
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 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 | |