Interface CfnBot.DataSourceConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnBot.DataSourceConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnBot
@Stability(Stable)
public static interface CfnBot.DataSourceConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
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.
Example:
// 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.*;
DataSourceConfigurationProperty dataSourceConfigurationProperty = DataSourceConfigurationProperty.builder()
.bedrockKnowledgeStoreConfiguration(BedrockKnowledgeStoreConfigurationProperty.builder()
.bedrockKnowledgeBaseArn("bedrockKnowledgeBaseArn")
.bkbExactResponseFields(BKBExactResponseFieldsProperty.builder()
.answerField("answerField")
.build())
.exactResponse(false)
.build())
.kendraConfiguration(QnAKendraConfigurationProperty.builder()
.exactResponse(false)
.kendraIndex("kendraIndex")
.queryFilterStringEnabled(false)
// the properties below are optional
.queryFilterString("queryFilterString")
.build())
.opensearchConfiguration(OpensearchConfigurationProperty.builder()
.domainEndpoint("domainEndpoint")
.exactResponse(false)
.exactResponseFields(ExactResponseFieldsProperty.builder()
.answerField("answerField")
.questionField("questionField")
.build())
.includeFields(List.of("includeFields"))
.indexName("indexName")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnBot.DataSourceConfigurationPropertystatic final classAn implementation forCfnBot.DataSourceConfigurationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectContains details about the configuration of the Amazon Bedrock knowledge base used for theAMAZON.QnAIntent.default ObjectContains details about the configuration of the Amazon Kendra index used for theAMAZON.QnAIntent.default ObjectContains details about the configuration of the Amazon OpenSearch Service database used for theAMAZON.QnAIntent.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getBedrockKnowledgeStoreConfiguration
Contains details about the configuration of the Amazon Bedrock knowledge base used for theAMAZON.QnAIntent. To set up a knowledge base, follow the steps at Building a knowledge base .Returns union: either
IResolvableorCfnBot.BedrockKnowledgeStoreConfigurationProperty- See Also:
-
getKendraConfiguration
Contains details about the configuration of the Amazon Kendra index used for theAMAZON.QnAIntent. To create a Amazon Kendra index, follow the steps at Creating an index .Returns union: either
IResolvableorCfnBot.QnAKendraConfigurationProperty- See Also:
-
getOpensearchConfiguration
Contains details about the configuration of the Amazon OpenSearch Service database used for theAMAZON.QnAIntent. To create a domain, follow the steps at Creating and managing Amazon OpenSearch Service domains .Returns union: either
IResolvableorCfnBot.OpensearchConfigurationProperty- See Also:
-
builder
-