# AnalysisProperty

Struct · External

Custom analysis configuration including analyzers, tokenizers, and filters.

- Source: Generated at build time
- Type last changed: v2.262.0 · 22 Jul 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 analysisProperty: opensearchserverless.CfnIndex.AnalysisProperty = {
  analyzer: {
    analyzerKey: {
      charFilter: ['charFilter'],
      filter: ['filter'],
      tokenizer: 'tokenizer',
      type: 'type',
    },
  },
};
```

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

analysis_property = opensearchserverless.CfnIndex.AnalysisProperty(
    analyzer={
        "analyzer_key": opensearchserverless.CfnIndex.AnalyzerItemsProperty(
            char_filter=["charFilter"],
            filter=["filter"],
            tokenizer="tokenizer",
            type="type"
        )
    }
)
```

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

AnalysisProperty analysisProperty = AnalysisProperty.builder()
        .analyzer(Map.of(
                "analyzerKey", AnalyzerItemsProperty.builder()
                        .charFilter(List.of("charFilter"))
                        .filter(List.of("filter"))
                        .tokenizer("tokenizer")
                        .type("type")
                        .build()))
        .build();
```

C#:

```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 analysisProperty = new AnalysisProperty {
    Analyzer = new Dictionary<string, object> {
        { "analyzerKey", new AnalyzerItemsProperty {
            CharFilter = new [] { "charFilter" },
            Filter = new [] { "filter" },
            Tokenizer = "tokenizer",
            Type = "type"
        } }
    }
};
```

Go:

```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"

analysisProperty := &AnalysisProperty{
	Analyzer: map[string]interface{}{
		"analyzerKey": &AnalyzerItemsProperty{
			"charFilter": []*string{
				jsii.String("charFilter"),
			},
			"filter": []*string{
				jsii.String("filter"),
			},
			"tokenizer": jsii.String("tokenizer"),
			"type": jsii.String("type"),
		},
	},
}
```

## Properties

- `analyzer`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnIndex.AnalyzerItemsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_opensearchserverless.CfnIndex.AnalyzerItemsProperty.html) } — Custom analyzer definitions.
