Class: AWSCDK::BedrockAgentCore::CfnMemory::EpisodicMemoryStrategyProperty

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(name:, created_at: nil, description: nil, memory_record_schema: nil, namespaces: nil, namespace_templates: nil, reflection_configuration: nil, status: nil, strategy_id: nil, type: nil, updated_at: nil) ⇒ EpisodicMemoryStrategyProperty

Returns a new instance of EpisodicMemoryStrategyProperty.

Parameters:

  • name (String)

    Name of the Memory resource.

  • created_at (String, nil) (defaults to: nil)

    Creation timestamp of the memory strategy.

  • description (String, nil) (defaults to: nil)

    Description of the Memory resource.

  • memory_record_schema (AWSCDK::IResolvable, AWSCDK::BedrockAgentCore::CfnMemory::MemoryRecordSchemaProperty, nil) (defaults to: nil)
  • namespaces (Array<String>, nil) (defaults to: nil)

    List of namespaces for memory strategy.

  • namespace_templates (Array<String>, nil) (defaults to: nil)

    List of namespaces for memory strategy.

  • reflection_configuration (AWSCDK::IResolvable, AWSCDK::BedrockAgentCore::CfnMemory::EpisodicReflectionConfigurationInputProperty, nil) (defaults to: nil)
  • status (String, nil) (defaults to: nil)

    Status of the memory strategy.

  • strategy_id (String, nil) (defaults to: nil)

    Unique identifier for the memory strategy.

  • type (String, nil) (defaults to: nil)

    Type of memory strategy.

  • updated_at (String, nil) (defaults to: nil)

    Last update timestamp of the memory strategy.



910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
# File 'bedrock_agent_core/cfn_memory.rb', line 910

def initialize(name:, created_at: nil, description: nil, memory_record_schema: nil, namespaces: nil, namespace_templates: nil, reflection_configuration: nil, status: nil, strategy_id: nil, type: nil, updated_at: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @created_at = created_at
  Jsii::Type.check_type(@created_at, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "createdAt") unless @created_at.nil?
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.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?
  @reflection_configuration = reflection_configuration.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnMemory::EpisodicReflectionConfigurationInputProperty.new(**reflection_configuration.transform_keys(&:to_sym)) : reflection_configuration
  Jsii::Type.check_type(@reflection_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbk1lbW9yeS5FcGlzb2RpY1JlZmxlY3Rpb25Db25maWd1cmF0aW9uSW5wdXRQcm9wZXJ0eSJ9XX19")), "reflectionConfiguration") unless @reflection_configuration.nil?
  @status = status
  Jsii::Type.check_type(@status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "status") unless @status.nil?
  @strategy_id = strategy_id
  Jsii::Type.check_type(@strategy_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "strategyId") unless @strategy_id.nil?
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil?
  @updated_at = updated_at
  Jsii::Type.check_type(@updated_at, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "updatedAt") unless @updated_at.nil?
end

Instance Attribute Details

#created_atString? (readonly)

Creation timestamp of the memory strategy.



944
945
946
# File 'bedrock_agent_core/cfn_memory.rb', line 944

def created_at
  @created_at
end

#descriptionString? (readonly)

Description of the Memory resource.



949
950
951
# File 'bedrock_agent_core/cfn_memory.rb', line 949

def description
  @description
end

#nameString (readonly)

Name of the Memory resource.



939
940
941
# File 'bedrock_agent_core/cfn_memory.rb', line 939

def name
  @name
end

#namespace_templatesArray<String>? (readonly)

List of namespaces for memory strategy.



962
963
964
# File 'bedrock_agent_core/cfn_memory.rb', line 962

def namespace_templates
  @namespace_templates
end

#namespacesArray<String>? (readonly)

List of namespaces for memory strategy.



957
958
959
# File 'bedrock_agent_core/cfn_memory.rb', line 957

def namespaces
  @namespaces
end

#statusString? (readonly)

Status of the memory strategy.



970
971
972
# File 'bedrock_agent_core/cfn_memory.rb', line 970

def status
  @status
end

#strategy_idString? (readonly)

Unique identifier for the memory strategy.



975
976
977
# File 'bedrock_agent_core/cfn_memory.rb', line 975

def strategy_id
  @strategy_id
end

#typeString? (readonly)

Type of memory strategy.



980
981
982
# File 'bedrock_agent_core/cfn_memory.rb', line 980

def type
  @type
end

#updated_atString? (readonly)

Last update timestamp of the memory strategy.



985
986
987
# File 'bedrock_agent_core/cfn_memory.rb', line 985

def updated_at
  @updated_at
end

Class Method Details

.jsii_propertiesObject



987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
# File 'bedrock_agent_core/cfn_memory.rb', line 987

def self.jsii_properties
  {
    :name => "name",
    :created_at => "createdAt",
    :description => "description",
    :memory_record_schema => "memoryRecordSchema",
    :namespaces => "namespaces",
    :namespace_templates => "namespaceTemplates",
    :reflection_configuration => "reflectionConfiguration",
    :status => "status",
    :strategy_id => "strategyId",
    :type => "type",
    :updated_at => "updatedAt",
  }
end

Instance Method Details

#to_jsiiObject



1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
# File 'bedrock_agent_core/cfn_memory.rb', line 1003

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "createdAt" => @created_at,
    "description" => @description,
    "memoryRecordSchema" => @memory_record_schema,
    "namespaces" => @namespaces,
    "namespaceTemplates" => @namespace_templates,
    "reflectionConfiguration" => @reflection_configuration,
    "status" => @status,
    "strategyId" => @strategy_id,
    "type" => @type,
    "updatedAt" => @updated_at,
  })
  result.compact
end