create_collection_group
async
¶
create_collection_group(
name: CollectionGroupName,
standby_replicas: StandbyReplicas,
*,
config_overrides: Optional[AsyncOpenSearchServerlessClientConfig] = 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/async_open_search_serverless.py
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 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 | |