Class: AWSCDK::Lex::CfnBot::BedrockAgentIntentKnowledgeBaseConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::BedrockAgentIntentKnowledgeBaseConfigurationProperty
- Defined in:
- lex/cfn_bot.rb
Overview
Instance Attribute Summary collapse
- #bedrock_knowledge_base_arn ⇒ String readonly
- #bedrock_model_configuration ⇒ AWSCDK::IResolvable, AWSCDK::Lex::CfnBot::BedrockModelSpecificationProperty readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bedrock_knowledge_base_arn:, bedrock_model_configuration:) ⇒ BedrockAgentIntentKnowledgeBaseConfigurationProperty
constructor
A new instance of BedrockAgentIntentKnowledgeBaseConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bedrock_knowledge_base_arn:, bedrock_model_configuration:) ⇒ BedrockAgentIntentKnowledgeBaseConfigurationProperty
Returns a new instance of BedrockAgentIntentKnowledgeBaseConfigurationProperty.
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_arn ⇒ String (readonly)
1109 1110 1111 |
# File 'lex/cfn_bot.rb', line 1109 def bedrock_knowledge_base_arn @bedrock_knowledge_base_arn end |
#bedrock_model_configuration ⇒ AWSCDK::IResolvable, AWSCDK::Lex::CfnBot::BedrockModelSpecificationProperty (readonly)
1112 1113 1114 |
# File 'lex/cfn_bot.rb', line 1112 def bedrock_model_configuration @bedrock_model_configuration end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |