Class: AWSCDK::Lex::CfnBot::DataSourceConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::DataSourceConfigurationProperty
- Defined in:
- lex/cfn_bot.rb
Overview
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.
Instance Attribute Summary collapse
-
#bedrock_knowledge_store_configuration ⇒ AWSCDK::IResolvable, ...
readonly
Contains details about the configuration of the Amazon Bedrock knowledge base used for the
AMAZON.QnAIntent. -
#kendra_configuration ⇒ AWSCDK::IResolvable, ...
readonly
Contains details about the configuration of the Amazon Kendra index used for the
AMAZON.QnAIntent. -
#opensearch_configuration ⇒ AWSCDK::IResolvable, ...
readonly
Contains details about the configuration of the Amazon OpenSearch Service database used for the
AMAZON.QnAIntent.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bedrock_knowledge_store_configuration: nil, kendra_configuration: nil, opensearch_configuration: nil) ⇒ DataSourceConfigurationProperty
constructor
A new instance of DataSourceConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bedrock_knowledge_store_configuration: nil, kendra_configuration: nil, opensearch_configuration: nil) ⇒ DataSourceConfigurationProperty
Returns a new instance of DataSourceConfigurationProperty.
2147 2148 2149 2150 2151 2152 2153 2154 |
# File 'lex/cfn_bot.rb', line 2147 def initialize(bedrock_knowledge_store_configuration: nil, kendra_configuration: nil, opensearch_configuration: nil) @bedrock_knowledge_store_configuration = bedrock_knowledge_store_configuration.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::BedrockKnowledgeStoreConfigurationProperty.new(**bedrock_knowledge_store_configuration.transform_keys(&:to_sym)) : bedrock_knowledge_store_configuration Jsii::Type.check_type(@bedrock_knowledge_store_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkJlZHJvY2tLbm93bGVkZ2VTdG9yZUNvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "bedrockKnowledgeStoreConfiguration") unless @bedrock_knowledge_store_configuration.nil? @kendra_configuration = kendra_configuration.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::QnAKendraConfigurationProperty.new(**kendra_configuration.transform_keys(&:to_sym)) : kendra_configuration Jsii::Type.check_type(@kendra_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LlFuQUtlbmRyYUNvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "kendraConfiguration") unless @kendra_configuration.nil? @opensearch_configuration = opensearch_configuration.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::OpensearchConfigurationProperty.new(**opensearch_configuration.transform_keys(&:to_sym)) : opensearch_configuration Jsii::Type.check_type(@opensearch_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90Lk9wZW5zZWFyY2hDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "opensearchConfiguration") unless @opensearch_configuration.nil? end |
Instance Attribute Details
#bedrock_knowledge_store_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
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 .
2160 2161 2162 |
# File 'lex/cfn_bot.rb', line 2160 def bedrock_knowledge_store_configuration @bedrock_knowledge_store_configuration end |
#kendra_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
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 .
2165 2166 2167 |
# File 'lex/cfn_bot.rb', line 2165 def kendra_configuration @kendra_configuration end |
#opensearch_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
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 .
2170 2171 2172 |
# File 'lex/cfn_bot.rb', line 2170 def opensearch_configuration @opensearch_configuration end |
Class Method Details
.jsii_properties ⇒ Object
2172 2173 2174 2175 2176 2177 2178 |
# File 'lex/cfn_bot.rb', line 2172 def self.jsii_properties { :bedrock_knowledge_store_configuration => "bedrockKnowledgeStoreConfiguration", :kendra_configuration => "kendraConfiguration", :opensearch_configuration => "opensearchConfiguration", } end |
Instance Method Details
#to_jsii ⇒ Object
2180 2181 2182 2183 2184 2185 2186 2187 2188 |
# File 'lex/cfn_bot.rb', line 2180 def to_jsii result = {} result.merge!({ "bedrockKnowledgeStoreConfiguration" => @bedrock_knowledge_store_configuration, "kendraConfiguration" => @kendra_configuration, "opensearchConfiguration" => @opensearch_configuration, }) result.compact end |