Class: AWSCDK::Lex::CfnBot::BedrockAgentIntentKnowledgeBaseConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lex/cfn_bot.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bedrock_knowledge_base_arn:, bedrock_model_configuration:) ⇒ BedrockAgentIntentKnowledgeBaseConfigurationProperty

Returns a new instance of BedrockAgentIntentKnowledgeBaseConfigurationProperty.

Parameters:



1100
1101
1102
1103
1104
1105
# File 'lex/cfn_bot.rb', line 1100

def initialize(bedrock_knowledge_base_arn:, bedrock_model_configuration:)
  @bedrock_knowledge_base_arn = bedrock_knowledge_base_arn
  Jsii::Type.check_type(@bedrock_knowledge_base_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bedrockKnowledgeBaseArn")
  @bedrock_model_configuration = bedrock_model_configuration.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::BedrockModelSpecificationProperty.new(**bedrock_model_configuration.transform_keys(&:to_sym)) : bedrock_model_configuration
  Jsii::Type.check_type(@bedrock_model_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkJlZHJvY2tNb2RlbFNwZWNpZmljYXRpb25Qcm9wZXJ0eSJ9XX19")), "bedrockModelConfiguration")
end

Instance Attribute Details

#bedrock_knowledge_base_arnString (readonly)



1109
1110
1111
# File 'lex/cfn_bot.rb', line 1109

def bedrock_knowledge_base_arn
  @bedrock_knowledge_base_arn
end

Class Method Details

.jsii_propertiesObject



1114
1115
1116
1117
1118
1119
# File 'lex/cfn_bot.rb', line 1114

def self.jsii_properties
  {
    :bedrock_knowledge_base_arn => "bedrockKnowledgeBaseArn",
    :bedrock_model_configuration => "bedrockModelConfiguration",
  }
end

Instance Method Details

#to_jsiiObject



1121
1122
1123
1124
1125
1126
1127
1128
# File 'lex/cfn_bot.rb', line 1121

def to_jsii
  result = {}
  result.merge!({
    "bedrockKnowledgeBaseArn" => @bedrock_knowledge_base_arn,
    "bedrockModelConfiguration" => @bedrock_model_configuration,
  })
  result.compact
end