create_collection_group
¶
create_collection_group(
name: CollectionGroupName,
standby_replicas: StandbyReplicas,
*,
config_overrides: Optional[OpenSearchServerlessClientConfig] = None,
description: Optional[str] = None,
tags: Optional[Tags] = None,
capacity_limits: Optional[CollectionGroupCapacityLimits] = None,
generation: Optional[ServerlessGeneration] = None,
client_token: Optional[ClientToken] = None,
) -> CreateCollectionGroupResponse
Creates a collection group within OpenSearch Serverless. Collection groups let you manage OpenSearch Compute Units (OCUs) at a group level, with multiple collections sharing the group's capacity limits.
For more information, see Managing collection groups.
Parameters:
-
name(CollectionGroupName) –The name of the collection group.
-
standby_replicas(StandbyReplicas) –Indicates whether standby replicas should be used for a collection group.
-
description(Optional[str], default:None) –A description of the collection group.
-
tags(Optional[Tags], default:None) –An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection group.
-
capacity_limits(Optional[CollectionGroupCapacityLimits], default:None) –The capacity limits for the collection group, in OpenSearch Compute Units (OCUs). These limits control the maximum and minimum capacity for collections within the group.
-
generation(Optional[ServerlessGeneration], default:None) –The generation of Amazon OpenSearch Serverless for the collection group. Valid values are
CLASSICandNEXTGEN. -
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.
-
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
1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 | |