Class: AWSCDK::BedrockAgentCore::CfnMemory::EpisodicReflectionConfigurationInputProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnMemory::EpisodicReflectionConfigurationInputProperty
- Defined in:
- bedrock_agent_core/cfn_memory.rb
Overview
Instance Attribute Summary collapse
- #memory_record_schema ⇒ AWSCDK::IResolvable, ... readonly
-
#namespace_templates ⇒ Array<String>?
readonly
List of namespaces for memory strategy.
-
#namespaces ⇒ Array<String>?
readonly
List of namespaces for memory strategy.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(memory_record_schema: nil, namespaces: nil, namespace_templates: nil) ⇒ EpisodicReflectionConfigurationInputProperty
constructor
A new instance of EpisodicReflectionConfigurationInputProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(memory_record_schema: nil, namespaces: nil, namespace_templates: nil) ⇒ EpisodicReflectionConfigurationInputProperty
Returns a new instance of EpisodicReflectionConfigurationInputProperty.
1219 1220 1221 1222 1223 1224 1225 1226 |
# File 'bedrock_agent_core/cfn_memory.rb', line 1219 def initialize(memory_record_schema: nil, namespaces: nil, namespace_templates: nil) @memory_record_schema = memory_record_schema.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnMemory::MemoryRecordSchemaProperty.new(**memory_record_schema.transform_keys(&:to_sym)) : memory_record_schema Jsii::Type.check_type(@memory_record_schema, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbk1lbW9yeS5NZW1vcnlSZWNvcmRTY2hlbWFQcm9wZXJ0eSJ9XX19")), "memoryRecordSchema") unless @memory_record_schema.nil? @namespaces = namespaces Jsii::Type.check_type(@namespaces, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "namespaces") unless @namespaces.nil? @namespace_templates = namespace_templates Jsii::Type.check_type(@namespace_templates, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "namespaceTemplates") unless @namespace_templates.nil? end |
Instance Attribute Details
#memory_record_schema ⇒ AWSCDK::IResolvable, ... (readonly)
1230 1231 1232 |
# File 'bedrock_agent_core/cfn_memory.rb', line 1230 def memory_record_schema @memory_record_schema end |
#namespace_templates ⇒ Array<String>? (readonly)
List of namespaces for memory strategy.
1240 1241 1242 |
# File 'bedrock_agent_core/cfn_memory.rb', line 1240 def namespace_templates @namespace_templates end |
#namespaces ⇒ Array<String>? (readonly)
List of namespaces for memory strategy.
1235 1236 1237 |
# File 'bedrock_agent_core/cfn_memory.rb', line 1235 def namespaces @namespaces end |
Class Method Details
.jsii_properties ⇒ Object
1242 1243 1244 1245 1246 1247 1248 |
# File 'bedrock_agent_core/cfn_memory.rb', line 1242 def self.jsii_properties { :memory_record_schema => "memoryRecordSchema", :namespaces => "namespaces", :namespace_templates => "namespaceTemplates", } end |
Instance Method Details
#to_jsii ⇒ Object
1250 1251 1252 1253 1254 1255 1256 1257 1258 |
# File 'bedrock_agent_core/cfn_memory.rb', line 1250 def to_jsii result = {} result.merge!({ "memoryRecordSchema" => @memory_record_schema, "namespaces" => @namespaces, "namespaceTemplates" => @namespace_templates, }) result.compact end |