# CfnCollectionGroupProps

Properties for defining a `CfnCollectionGroup`.

Used as props by: [CfnCollectionGroup](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_opensearchserverless.CfnCollectionGroup.html)

- Source: Generated at build time
- Type last changed: v2.260.0 · 16 Jun 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 cfnCollectionGroupProps: opensearchserverless.CfnCollectionGroupProps = {
  name: 'name',
  standbyReplicas: 'standbyReplicas',

  // the properties below are optional
  capacityLimits: {
    maxIndexingCapacityInOcu: 123,
    maxSearchCapacityInOcu: 123,
    minIndexingCapacityInOcu: 123,
    minSearchCapacityInOcu: 123,
  },
  description: 'description',
  generation: 'generation',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

Python:

```python
from aws_cdk import CfnTag
# 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

cfn_collection_group_props = opensearchserverless.CfnCollectionGroupProps(
    name="name",
    standby_replicas="standbyReplicas",

    # the properties below are optional
    capacity_limits=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
    ),
    description="description",
    generation="generation",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

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.*;

CfnCollectionGroupProps cfnCollectionGroupProps = CfnCollectionGroupProps.builder()
        .name("name")
        .standbyReplicas("standbyReplicas")

        // the properties below are optional
        .capacityLimits(CapacityLimitsProperty.builder()
                .maxIndexingCapacityInOcu(123)
                .maxSearchCapacityInOcu(123)
                .minIndexingCapacityInOcu(123)
                .minSearchCapacityInOcu(123)
                .build())
        .description("description")
        .generation("generation")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .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 cfnCollectionGroupProps = new CfnCollectionGroupProps {
    Name = "name",
    StandbyReplicas = "standbyReplicas",

    // the properties below are optional
    CapacityLimits = new CapacityLimitsProperty {
        MaxIndexingCapacityInOcu = 123,
        MaxSearchCapacityInOcu = 123,
        MinIndexingCapacityInOcu = 123,
        MinSearchCapacityInOcu = 123
    },
    Description = "description",
    Generation = "generation",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

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"

cfnCollectionGroupProps := &CfnCollectionGroupProps{
	Name: jsii.String("name"),
	StandbyReplicas: jsii.String("standbyReplicas"),

	// the properties below are optional
	CapacityLimits: &CapacityLimitsProperty{
		MaxIndexingCapacityInOcu: jsii.Number(123),
		MaxSearchCapacityInOcu: jsii.Number(123),
		MinIndexingCapacityInOcu: jsii.Number(123),
		MinSearchCapacityInOcu: jsii.Number(123),
	},
	Description: jsii.String("description"),
	Generation: jsii.String("generation"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `capacityLimits`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCollectionGroup.CapacityLimitsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_opensearchserverless.CfnCollectionGroup.CapacityLimitsProperty.html)

- `description`: string — The description of the collection group.

- `generation`: string — The generation of Amazon OpenSearch Serverless for the collection group.

  Valid values are CLASSIC and NEXTGEN.

- `name`: string (required) — The name of the collection group.

- `standbyReplicas`: string (required) — Indicates whether standby replicas are used for the collection group.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — An array of key-value pairs to apply to this resource.
