Class: AWSCDK::Bedrock::CfnKnowledgeBase::EmbeddingModelConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock/cfn_knowledge_base.rb

Overview

The configuration details for the embeddings model.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bedrock_embedding_model_configuration: nil) ⇒ EmbeddingModelConfigurationProperty

Returns a new instance of EmbeddingModelConfigurationProperty.

Parameters:



842
843
844
845
# File 'bedrock/cfn_knowledge_base.rb', line 842

def initialize(bedrock_embedding_model_configuration: nil)
  @bedrock_embedding_model_configuration = bedrock_embedding_model_configuration.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnKnowledgeBase::BedrockEmbeddingModelConfigurationProperty.new(**bedrock_embedding_model_configuration.transform_keys(&:to_sym)) : bedrock_embedding_model_configuration
  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_configurationAWSCDK::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
  @bedrock_embedding_model_configuration
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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