Class: AWSCDK::Bedrock::CfnKnowledgeBase::QueryGenerationContextProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnKnowledgeBase::QueryGenerationContextProperty
- Defined in:
- bedrock/cfn_knowledge_base.rb
Overview
Contains configurations for context to use during query generation.
Instance Attribute Summary collapse
-
#curated_queries ⇒ AWSCDK::IResolvable, ...
readonly
An array of objects, each of which defines information about example queries to help the query engine generate appropriate SQL queries.
-
#tables ⇒ AWSCDK::IResolvable, ...
readonly
An array of objects, each of which defines information about a table in the database.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(curated_queries: nil, tables: nil) ⇒ QueryGenerationContextProperty
constructor
A new instance of QueryGenerationContextProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(curated_queries: nil, tables: nil) ⇒ QueryGenerationContextProperty
Returns a new instance of QueryGenerationContextProperty.
1770 1771 1772 1773 1774 1775 |
# File 'bedrock/cfn_knowledge_base.rb', line 1770 def initialize(curated_queries: nil, tables: nil) @curated_queries = curated_queries Jsii::Type.check_type(@curated_queries, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9jay5DZm5Lbm93bGVkZ2VCYXNlLkN1cmF0ZWRRdWVyeVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "curatedQueries") unless @curated_queries.nil? @tables = tables Jsii::Type.check_type(@tables, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9jay5DZm5Lbm93bGVkZ2VCYXNlLlF1ZXJ5R2VuZXJhdGlvblRhYmxlUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "tables") unless @tables.nil? end |
Instance Attribute Details
#curated_queries ⇒ AWSCDK::IResolvable, ... (readonly)
An array of objects, each of which defines information about example queries to help the query engine generate appropriate SQL queries.
1781 1782 1783 |
# File 'bedrock/cfn_knowledge_base.rb', line 1781 def curated_queries @curated_queries end |
#tables ⇒ AWSCDK::IResolvable, ... (readonly)
An array of objects, each of which defines information about a table in the database.
1786 1787 1788 |
# File 'bedrock/cfn_knowledge_base.rb', line 1786 def tables @tables end |
Class Method Details
.jsii_properties ⇒ Object
1788 1789 1790 1791 1792 1793 |
# File 'bedrock/cfn_knowledge_base.rb', line 1788 def self.jsii_properties { :curated_queries => "curatedQueries", :tables => "tables", } end |
Instance Method Details
#to_jsii ⇒ Object
1795 1796 1797 1798 1799 1800 1801 1802 |
# File 'bedrock/cfn_knowledge_base.rb', line 1795 def to_jsii result = {} result.merge!({ "curatedQueries" => @curated_queries, "tables" => @tables, }) result.compact end |