Class: AWSCDK::BedrockAgentCore::CfnMemory::EpisodicMemoryStrategyProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnMemory::EpisodicMemoryStrategyProperty
- Defined in:
- bedrock_agent_core/cfn_memory.rb
Overview
Instance Attribute Summary collapse
-
#created_at ⇒ String?
readonly
Creation timestamp of the memory strategy.
-
#description ⇒ String?
readonly
Description of the Memory resource.
- #memory_record_schema ⇒ AWSCDK::IResolvable, ... readonly
-
#name ⇒ String
readonly
Name of the Memory resource.
-
#namespace_templates ⇒ Array<String>?
readonly
List of namespaces for memory strategy.
-
#namespaces ⇒ Array<String>?
readonly
List of namespaces for memory strategy.
- #reflection_configuration ⇒ AWSCDK::IResolvable, ... readonly
-
#status ⇒ String?
readonly
Status of the memory strategy.
-
#strategy_id ⇒ String?
readonly
Unique identifier for the memory strategy.
-
#type ⇒ String?
readonly
Type of memory strategy.
-
#updated_at ⇒ String?
readonly
Last update timestamp of the memory strategy.
Class Method Summary collapse
Instance Method Summary collapse
-
#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
constructor
A new instance of EpisodicMemoryStrategyProperty.
- #to_jsii ⇒ Object
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.
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_at ⇒ String? (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 |
#description ⇒ String? (readonly)
Description of the Memory resource.
949 950 951 |
# File 'bedrock_agent_core/cfn_memory.rb', line 949 def description @description end |
#memory_record_schema ⇒ AWSCDK::IResolvable, ... (readonly)
952 953 954 |
# File 'bedrock_agent_core/cfn_memory.rb', line 952 def memory_record_schema @memory_record_schema end |
#name ⇒ String (readonly)
Name of the Memory resource.
939 940 941 |
# File 'bedrock_agent_core/cfn_memory.rb', line 939 def name @name end |
#namespace_templates ⇒ Array<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 |
#namespaces ⇒ Array<String>? (readonly)
List of namespaces for memory strategy.
957 958 959 |
# File 'bedrock_agent_core/cfn_memory.rb', line 957 def namespaces @namespaces end |
#reflection_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
965 966 967 |
# File 'bedrock_agent_core/cfn_memory.rb', line 965 def reflection_configuration @reflection_configuration end |
#status ⇒ String? (readonly)
Status of the memory strategy.
970 971 972 |
# File 'bedrock_agent_core/cfn_memory.rb', line 970 def status @status end |
#strategy_id ⇒ String? (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 |
#type ⇒ String? (readonly)
Type of memory strategy.
980 981 982 |
# File 'bedrock_agent_core/cfn_memory.rb', line 980 def type @type end |
#updated_at ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |