Skip to content
v2.278.0

QnAKendraConfigurationProperty Struct ​

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

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

  // the properties below are optional
  queryFilterString: 'queryFilterString',
};
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
// 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();
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"
};
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 ​

exactResponseboolean | IResolvableexact_responsetyping.Union[bool, IResolvable]exactResponseBooleanExactResponseboolExactResponseinterface{} 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 .

kendraIndexstringkendra_indexstrkendraIndexStringKendraIndexstringKendraIndex*string required #
The ARN of the Amazon Kendra index to use.
queryFilterStringoptionalstringquery_filter_stringoptionalstrqueryFilterStringoptionalStringQueryFilterStringoptionalstringQueryFilterStringoptional*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 .

queryFilterStringEnabledboolean | IResolvablequery_filter_string_enabledtyping.Union[bool, IResolvable]queryFilterStringEnabledBooleanQueryFilterStringEnabledboolQueryFilterStringEnabledinterface{} required #
Specifies whether to enable an Amazon Kendra filter string or not.