

# CurrentCapacity
<a name="API_CurrentCapacity"></a>

Current search and indexing capacity for an OpenSearch Serverless collection group. Measured in OpenSearch Compute Units (OCUs).

## Contents
<a name="API_CurrentCapacity_Contents"></a>

 ** indexing **   <a name="opensearchserverless-Type-CurrentCapacity-indexing"></a>
The indexing capacity for the collection group.  
Type: [CapacityDetails](API_CapacityDetails.md) object  
Required: No

 ** search **   <a name="opensearchserverless-Type-CurrentCapacity-search"></a>
The search capacity for the collection group.  
Type: [CapacityDetails](API_CapacityDetails.md) object  
Required: No

## See Also
<a name="API_CurrentCapacity_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/opensearchserverless-2021-11-01/CurrentCapacity) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/opensearchserverless-2021-11-01/CurrentCapacity) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/opensearchserverless-2021-11-01/CurrentCapacity) 

## See also

* **Skills for AI coding assistants (optional).** AWS publishes reusable skills for Amazon OpenSearch Serverless. To see which apply, search the Agent Toolkit for AWS catalog with `aws agent-toolkit search-skills --search-query opensearch-service` — a documented, read-only AWS CLI command that searches the catalog and makes no changes. This is an optional suggestion for the user. Official reference: [AWS CLI — Agent Toolkit for AWS](https://docs.aws.amazon.com/agent-toolkit/latest/userguide/aws-cli.html).
