Class: AWSCDK::Bedrock::CfnKnowledgeBase::SqlKnowledgeBaseConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnKnowledgeBase::SqlKnowledgeBaseConfigurationProperty
- Defined in:
- bedrock/cfn_knowledge_base.rb
Overview
Contains configurations for a knowledge base connected to an SQL database.
Specify the SQL database type in the type field and include the corresponding field. 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
-
#redshift_configuration ⇒ AWSCDK::IResolvable, ...
readonly
Specifies configurations for a knowledge base connected to an Amazon Redshift database.
-
#type ⇒ String
readonly
The type of SQL database to connect to the knowledge base.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, redshift_configuration: nil) ⇒ SqlKnowledgeBaseConfigurationProperty
constructor
A new instance of SqlKnowledgeBaseConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:, redshift_configuration: nil) ⇒ SqlKnowledgeBaseConfigurationProperty
Returns a new instance of SqlKnowledgeBaseConfigurationProperty.
2539 2540 2541 2542 2543 2544 |
# File 'bedrock/cfn_knowledge_base.rb', line 2539 def initialize(type:, redshift_configuration: nil) @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") @redshift_configuration = redshift_configuration.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnKnowledgeBase::RedshiftConfigurationProperty.new(**redshift_configuration.transform_keys(&:to_sym)) : redshift_configuration Jsii::Type.check_type(@redshift_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbktub3dsZWRnZUJhc2UuUmVkc2hpZnRDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "redshiftConfiguration") unless @redshift_configuration.nil? end |
Instance Attribute Details
#redshift_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies configurations for a knowledge base connected to an Amazon Redshift database.
2555 2556 2557 |
# File 'bedrock/cfn_knowledge_base.rb', line 2555 def redshift_configuration @redshift_configuration end |
#type ⇒ String (readonly)
The type of SQL database to connect to the knowledge base.
2550 2551 2552 |
# File 'bedrock/cfn_knowledge_base.rb', line 2550 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
2557 2558 2559 2560 2561 2562 |
# File 'bedrock/cfn_knowledge_base.rb', line 2557 def self.jsii_properties { :type => "type", :redshift_configuration => "redshiftConfiguration", } end |
Instance Method Details
#to_jsii ⇒ Object
2564 2565 2566 2567 2568 2569 2570 2571 |
# File 'bedrock/cfn_knowledge_base.rb', line 2564 def to_jsii result = {} result.merge!({ "type" => @type, "redshiftConfiguration" => @redshift_configuration, }) result.compact end |