Class: AWSCDK::BedrockAgentCore::CfnMemory::EpisodicReflectionConfigurationInputProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock_agent_core/cfn_memory.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(memory_record_schema: nil, namespaces: nil, namespace_templates: nil) ⇒ EpisodicReflectionConfigurationInputProperty

Returns a new instance of EpisodicReflectionConfigurationInputProperty.

Parameters:



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

#namespace_templatesArray<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

#namespacesArray<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_propertiesObject



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_jsiiObject



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