# DataSourceConfigurationProperty

Contains details about the configuration of the knowledge store used for the `AMAZON.QnAIntent` . You must have already created the knowledge store and indexed the documents within it.

- Source: Generated code
- Type last changed: v2.187.0 · 31 Mar 2025

## Example

```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 dataSourceConfigurationProperty: lex.CfnBot.DataSourceConfigurationProperty = {
  bedrockKnowledgeStoreConfiguration: {
    bedrockKnowledgeBaseArn: 'bedrockKnowledgeBaseArn',
    bkbExactResponseFields: {
      answerField: 'answerField',
    },
    exactResponse: false,
  },
  kendraConfiguration: {
    exactResponse: false,
    kendraIndex: 'kendraIndex',
    queryFilterStringEnabled: false,

    // the properties below are optional
    queryFilterString: 'queryFilterString',
  },
  opensearchConfiguration: {
    domainEndpoint: 'domainEndpoint',
    exactResponse: false,
    exactResponseFields: {
      answerField: 'answerField',
      questionField: 'questionField',
    },
    includeFields: ['includeFields'],
    indexName: 'indexName',
  },
};
```

## Properties

- `bedrockKnowledgeStoreConfiguration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBot.BedrockKnowledgeStoreConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lex.CfnBot.BedrockKnowledgeStoreConfigurationProperty.html) — Contains details about the configuration of the Amazon Bedrock knowledge base used for the `AMAZON.QnAIntent` . To set up a knowledge base, follow the steps at [Building a knowledge base](https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html) .

- `kendraConfiguration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBot.QnAKendraConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lex.CfnBot.QnAKendraConfigurationProperty.html) — Contains details about the configuration of the Amazon Kendra index used for the `AMAZON.QnAIntent` . To create a Amazon Kendra index, follow the steps at [Creating an index](https://docs.aws.amazon.com/kendra/latest/dg/create-index.html) .

- `opensearchConfiguration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBot.OpensearchConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lex.CfnBot.OpensearchConfigurationProperty.html) — Contains details about the configuration of the Amazon OpenSearch Service database used for the `AMAZON.QnAIntent` . To create a domain, follow the steps at [Creating and managing Amazon OpenSearch Service domains](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/createupdatedomains.html) .
