# QnAKendraConfigurationProperty

Contains details about the configuration of the Amazon Kendra index used for the `AMAZON.QnAIntent` .

- Source: Generated at build time
- Type last changed: v2.187.0 · 31 Mar 2025

## 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 qnAKendraConfigurationProperty: lex.CfnBot.QnAKendraConfigurationProperty = {
  exactResponse: false,
  kendraIndex: 'kendraIndex',
  queryFilterStringEnabled: false,

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

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

qn_a_kendra_configuration_property = lex.CfnBot.QnAKendraConfigurationProperty(
    exact_response=False,
    kendra_index="kendraIndex",
    query_filter_string_enabled=False,

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

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

QnAKendraConfigurationProperty qnAKendraConfigurationProperty = QnAKendraConfigurationProperty.builder()
        .exactResponse(false)
        .kendraIndex("kendraIndex")
        .queryFilterStringEnabled(false)

        // the properties below are optional
        .queryFilterString("queryFilterString")
        .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 qnAKendraConfigurationProperty = new QnAKendraConfigurationProperty {
    ExactResponse = false,
    KendraIndex = "kendraIndex",
    QueryFilterStringEnabled = false,

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

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"

qnAKendraConfigurationProperty := &QnAKendraConfigurationProperty{
	ExactResponse: jsii.Boolean(false),
	KendraIndex: jsii.String("kendraIndex"),
	QueryFilterStringEnabled: jsii.Boolean(false),

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

## Properties

- `exactResponse`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) (required) — Specifies whether to return an exact response from the Amazon Kendra index or to let the Amazon Bedrock model you select generate a response based on the results.

  To use this feature, you must first add FAQ questions to your index by following the steps at [Adding frequently asked questions (FAQs) to an index](https://docs.aws.amazon.com/kendra/latest/dg/in-creating-faq.html) .

- `kendraIndex`: string (required) — The ARN of the Amazon Kendra index to use.

- `queryFilterString`: string — Contains the Amazon Kendra filter string to use if enabled.

  For more information on the Amazon Kendra search filter JSON format, see [Using document attributes to filter search results](https://docs.aws.amazon.com/kendra/latest/dg/filtering.html#search-filtering) .

- `queryFilterStringEnabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) (required) — Specifies whether to enable an Amazon Kendra filter string or not.
