# KendraConfigurationProperty

Provides configuration information for the `AMAZON.KendraSearchIntent` intent. When you use this intent, Amazon Lex searches the specified Amazon Kendra index and returns documents from the index that match the user's utterance.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lex as lex } from 'aws-cdk-lib';
const kendraConfigurationProperty: lex.CfnBot.KendraConfigurationProperty = {
  kendraIndex: 'kendraIndex',

  // the properties below are optional
  queryFilterString: 'queryFilterString',
  queryFilterStringEnabled: false,
};
```

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_lex as lex

kendra_configuration_property = lex.CfnBot.KendraConfigurationProperty(
    kendra_index="kendraIndex",

    # the properties below are optional
    query_filter_string="queryFilterString",
    query_filter_string_enabled=False
)
```

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

KendraConfigurationProperty kendraConfigurationProperty = KendraConfigurationProperty.builder()
        .kendraIndex("kendraIndex")

        // the properties below are optional
        .queryFilterString("queryFilterString")
        .queryFilterStringEnabled(false)
        .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.Lex;

var kendraConfigurationProperty = new KendraConfigurationProperty {
    KendraIndex = "kendraIndex",

    // the properties below are optional
    QueryFilterString = "queryFilterString",
    QueryFilterStringEnabled = false
};
```

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"

kendraConfigurationProperty := &KendraConfigurationProperty{
	KendraIndex: jsii.String("kendraIndex"),

	// the properties below are optional
	QueryFilterString: jsii.String("queryFilterString"),
	QueryFilterStringEnabled: jsii.Boolean(false),
}
```

## Properties

- `kendraIndex`: string (required) — The Amazon Resource Name (ARN) of the Amazon Kendra index that you want the `AMAZON.KendraSearchIntent` intent to search. The index must be in the same account and Region as the Amazon Lex bot.

- `queryFilterString`: string — A query filter that Amazon Lex sends to Amazon Kendra to filter the response from a query.

  The filter is in the format defined by Amazon Kendra. For more information, see [Filtering queries](https://docs.aws.amazon.com/kendra/latest/dg/filtering.html) .

- `queryFilterStringEnabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Determines whether the `AMAZON.KendraSearchIntent` intent uses a custom query string to query the Amazon Kendra index.
