# CapacityLimitsProperty

- Source: Generated at build time
- Type last changed: v2.241.0 · 2 Mar 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_opensearchserverless as opensearchserverless } from 'aws-cdk-lib';
const capacityLimitsProperty: opensearchserverless.CfnCollectionGroup.CapacityLimitsProperty = {
  maxIndexingCapacityInOcu: 123,
  maxSearchCapacityInOcu: 123,
  minIndexingCapacityInOcu: 123,
  minSearchCapacityInOcu: 123,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_opensearchserverless as opensearchserverless

capacity_limits_property = opensearchserverless.CfnCollectionGroup.CapacityLimitsProperty(
    max_indexing_capacity_in_ocu=123,
    max_search_capacity_in_ocu=123,
    min_indexing_capacity_in_ocu=123,
    min_search_capacity_in_ocu=123
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.opensearchserverless.*;

CapacityLimitsProperty capacityLimitsProperty = CapacityLimitsProperty.builder()
        .maxIndexingCapacityInOcu(123)
        .maxSearchCapacityInOcu(123)
        .minIndexingCapacityInOcu(123)
        .minSearchCapacityInOcu(123)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.OpenSearchServerless;

var capacityLimitsProperty = new CapacityLimitsProperty {
    MaxIndexingCapacityInOcu = 123,
    MaxSearchCapacityInOcu = 123,
    MinIndexingCapacityInOcu = 123,
    MinSearchCapacityInOcu = 123
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

capacityLimitsProperty := &CapacityLimitsProperty{
	MaxIndexingCapacityInOcu: jsii.Number(123),
	MaxSearchCapacityInOcu: jsii.Number(123),
	MinIndexingCapacityInOcu: jsii.Number(123),
	MinSearchCapacityInOcu: jsii.Number(123),
}
```

## Properties

- `maxIndexingCapacityInOcu`: number — The maximum indexing capacity for collections in the group.

- `maxSearchCapacityInOcu`: number — The maximum search capacity for collections in the group.

- `minIndexingCapacityInOcu`: number — The minimum indexing capacity for collections in the group.

- `minSearchCapacityInOcu`: number — The minimum search capacity for collections in the group.
