Class: AWSCDK::Bedrock::CfnKnowledgeBase::QueryGenerationConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnKnowledgeBase::QueryGenerationConfigurationProperty
- Defined in:
- bedrock/cfn_knowledge_base.rb
Overview
Contains configurations for query generation.
For more information, see Build a knowledge base by connecting to a structured data source in the Amazon Bedrock User Guide..
Instance Attribute Summary collapse
-
#execution_timeout_seconds ⇒ Numeric?
readonly
The time after which query generation will time out.
-
#generation_context ⇒ AWSCDK::IResolvable, ...
readonly
Specifies configurations for context to use during query generation.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(execution_timeout_seconds: nil, generation_context: nil) ⇒ QueryGenerationConfigurationProperty
constructor
A new instance of QueryGenerationConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(execution_timeout_seconds: nil, generation_context: nil) ⇒ QueryGenerationConfigurationProperty
Returns a new instance of QueryGenerationConfigurationProperty.
1727 1728 1729 1730 1731 1732 |
# File 'bedrock/cfn_knowledge_base.rb', line 1727 def initialize(execution_timeout_seconds: nil, generation_context: nil) @execution_timeout_seconds = execution_timeout_seconds Jsii::Type.check_type(@execution_timeout_seconds, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "executionTimeoutSeconds") unless @execution_timeout_seconds.nil? @generation_context = generation_context.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnKnowledgeBase::QueryGenerationContextProperty.new(**generation_context.transform_keys(&:to_sym)) : generation_context Jsii::Type.check_type(@generation_context, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbktub3dsZWRnZUJhc2UuUXVlcnlHZW5lcmF0aW9uQ29udGV4dFByb3BlcnR5In1dfX0=")), "generationContext") unless @generation_context.nil? end |
Instance Attribute Details
#execution_timeout_seconds ⇒ Numeric? (readonly)
The time after which query generation will time out.
1738 1739 1740 |
# File 'bedrock/cfn_knowledge_base.rb', line 1738 def execution_timeout_seconds @execution_timeout_seconds end |
#generation_context ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies configurations for context to use during query generation.
1743 1744 1745 |
# File 'bedrock/cfn_knowledge_base.rb', line 1743 def generation_context @generation_context end |
Class Method Details
.jsii_properties ⇒ Object
1745 1746 1747 1748 1749 1750 |
# File 'bedrock/cfn_knowledge_base.rb', line 1745 def self.jsii_properties { :execution_timeout_seconds => "executionTimeoutSeconds", :generation_context => "generationContext", } end |
Instance Method Details
#to_jsii ⇒ Object
1752 1753 1754 1755 1756 1757 1758 1759 |
# File 'bedrock/cfn_knowledge_base.rb', line 1752 def to_jsii result = {} result.merge!({ "executionTimeoutSeconds" => @execution_timeout_seconds, "generationContext" => @generation_context, }) result.compact end |