Interface CfnBot.QnAIntentConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnBot.QnAIntentConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnBot
@Stability(Stable)
public static interface CfnBot.QnAIntentConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
Details about the the configuration of the built-in
Amazon.QnAIntent .
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.*;
QnAIntentConfigurationProperty qnAIntentConfigurationProperty = QnAIntentConfigurationProperty.builder()
.bedrockModelConfiguration(BedrockModelSpecificationProperty.builder()
.modelArn("modelArn")
// the properties below are optional
.bedrockGuardrailConfiguration(BedrockGuardrailConfigurationProperty.builder()
.bedrockGuardrailIdentifier("bedrockGuardrailIdentifier")
.bedrockGuardrailVersion("bedrockGuardrailVersion")
.build())
.bedrockModelCustomPrompt("bedrockModelCustomPrompt")
.bedrockTraceStatus("bedrockTraceStatus")
.build())
.dataSourceConfiguration(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())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnBot.QnAIntentConfigurationPropertystatic final classAn implementation forCfnBot.QnAIntentConfigurationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Contains information about the Amazon Bedrock model used to interpret the prompt used in descriptive bot building.Contains details about the configuration of the data source used for theAMAZON.QnAIntent.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getBedrockModelConfiguration
Contains information about the Amazon Bedrock model used to interpret the prompt used in descriptive bot building.- See Also:
-
getDataSourceConfiguration
Contains details about the configuration of the data source used for theAMAZON.QnAIntent.- See Also:
-
builder
-