Class: AWSCDK::Lex::CfnBot::BedrockAgentIntentConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::BedrockAgentIntentConfigurationProperty
- Defined in:
- lex/cfn_bot.rb
Overview
Instance Attribute Summary collapse
- #bedrock_agent_configuration ⇒ AWSCDK::IResolvable, ... readonly
- #bedrock_agent_intent_knowledge_base_configuration ⇒ AWSCDK::IResolvable, ... readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bedrock_agent_configuration: nil, bedrock_agent_intent_knowledge_base_configuration: nil) ⇒ BedrockAgentIntentConfigurationProperty
constructor
A new instance of BedrockAgentIntentConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bedrock_agent_configuration: nil, bedrock_agent_intent_knowledge_base_configuration: nil) ⇒ BedrockAgentIntentConfigurationProperty
Returns a new instance of BedrockAgentIntentConfigurationProperty.
1063 1064 1065 1066 1067 1068 |
# File 'lex/cfn_bot.rb', line 1063 def initialize(bedrock_agent_configuration: nil, bedrock_agent_intent_knowledge_base_configuration: nil) @bedrock_agent_configuration = bedrock_agent_configuration.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::BedrockAgentConfigurationProperty.new(**bedrock_agent_configuration.transform_keys(&:to_sym)) : bedrock_agent_configuration Jsii::Type.check_type(@bedrock_agent_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkJlZHJvY2tBZ2VudENvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "bedrockAgentConfiguration") unless @bedrock_agent_configuration.nil? @bedrock_agent_intent_knowledge_base_configuration = bedrock_agent_intent_knowledge_base_configuration.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::BedrockAgentIntentKnowledgeBaseConfigurationProperty.new(**bedrock_agent_intent_knowledge_base_configuration.transform_keys(&:to_sym)) : bedrock_agent_intent_knowledge_base_configuration Jsii::Type.check_type(@bedrock_agent_intent_knowledge_base_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkJlZHJvY2tBZ2VudEludGVudEtub3dsZWRnZUJhc2VDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "bedrockAgentIntentKnowledgeBaseConfiguration") unless @bedrock_agent_intent_knowledge_base_configuration.nil? end |
Instance Attribute Details
#bedrock_agent_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
1072 1073 1074 |
# File 'lex/cfn_bot.rb', line 1072 def bedrock_agent_configuration @bedrock_agent_configuration end |
#bedrock_agent_intent_knowledge_base_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
1075 1076 1077 |
# File 'lex/cfn_bot.rb', line 1075 def bedrock_agent_intent_knowledge_base_configuration @bedrock_agent_intent_knowledge_base_configuration end |
Class Method Details
.jsii_properties ⇒ Object
1077 1078 1079 1080 1081 1082 |
# File 'lex/cfn_bot.rb', line 1077 def self.jsii_properties { :bedrock_agent_configuration => "bedrockAgentConfiguration", :bedrock_agent_intent_knowledge_base_configuration => "bedrockAgentIntentKnowledgeBaseConfiguration", } end |
Instance Method Details
#to_jsii ⇒ Object
1084 1085 1086 1087 1088 1089 1090 1091 |
# File 'lex/cfn_bot.rb', line 1084 def to_jsii result = {} result.merge!({ "bedrockAgentConfiguration" => @bedrock_agent_configuration, "bedrockAgentIntentKnowledgeBaseConfiguration" => @bedrock_agent_intent_knowledge_base_configuration, }) result.compact end |