# CfnCollectionIndexProps

Properties for defining a `CfnCollectionIndex`.

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

- Source: Generated at build time
- Type last changed: v2.258.0 · 4 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 cfnCollectionIndexProps: opensearchserverless.CfnCollectionIndexProps = {
  id: 'id',
  indexName: 'indexName',

  // the properties below are optional
  indexSchema: 'indexSchema',
};
```

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

cfn_collection_index_props = opensearchserverless.CfnCollectionIndexProps(
    id="id",
    index_name="indexName",

    # the properties below are optional
    index_schema="indexSchema"
)
```

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

CfnCollectionIndexProps cfnCollectionIndexProps = CfnCollectionIndexProps.builder()
        .id("id")
        .indexName("indexName")

        // the properties below are optional
        .indexSchema("indexSchema")
        .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 cfnCollectionIndexProps = new CfnCollectionIndexProps {
    Id = "id",
    IndexName = "indexName",

    // the properties below are optional
    IndexSchema = "indexSchema"
};
```

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"

cfnCollectionIndexProps := &CfnCollectionIndexProps{
	Id: jsii.String("id"),
	IndexName: jsii.String("indexName"),

	// the properties below are optional
	IndexSchema: jsii.String("indexSchema"),
}
```

## Properties

- `id`: string (required) — The identifier of the collection.

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

- `indexSchema`: string — The Mappings for the collection index.
