Class: AWSCDK::Bedrock::CfnKnowledgeBase::EmbeddingModelConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnKnowledgeBase::EmbeddingModelConfigurationProperty
- Defined in:
- bedrock/cfn_knowledge_base.rb
Overview
The configuration details for the embeddings model.
Instance Attribute Summary collapse
-
#bedrock_embedding_model_configuration ⇒ AWSCDK::IResolvable, ...
readonly
The vector configuration details on the Bedrock embeddings model.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bedrock_embedding_model_configuration: nil) ⇒ EmbeddingModelConfigurationProperty
constructor
A new instance of EmbeddingModelConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bedrock_embedding_model_configuration: nil) ⇒ EmbeddingModelConfigurationProperty
Returns a new instance of EmbeddingModelConfigurationProperty.
842 843 844 845 |
# File 'bedrock/cfn_knowledge_base.rb', line 842 def initialize(bedrock_embedding_model_configuration: nil) @bedrock_embedding_model_configuration = .is_a?(Hash) ? ::AWSCDK::Bedrock::CfnKnowledgeBase::BedrockEmbeddingModelConfigurationProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@bedrock_embedding_model_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbktub3dsZWRnZUJhc2UuQmVkcm9ja0VtYmVkZGluZ01vZGVsQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "bedrockEmbeddingModelConfiguration") unless @bedrock_embedding_model_configuration.nil? end |
Instance Attribute Details
#bedrock_embedding_model_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
The vector configuration details on the Bedrock embeddings model.
851 852 853 |
# File 'bedrock/cfn_knowledge_base.rb', line 851 def @bedrock_embedding_model_configuration end |
Class Method Details
.jsii_properties ⇒ Object
853 854 855 856 857 |
# File 'bedrock/cfn_knowledge_base.rb', line 853 def self.jsii_properties { :bedrock_embedding_model_configuration => "bedrockEmbeddingModelConfiguration", } end |
Instance Method Details
#to_jsii ⇒ Object
859 860 861 862 863 864 865 |
# File 'bedrock/cfn_knowledge_base.rb', line 859 def to_jsii result = {} result.merge!({ "bedrockEmbeddingModelConfiguration" => @bedrock_embedding_model_configuration, }) result.compact end |