Class: AWSCDK::BedrockAgentCore::CfnMemory::CustomMemoryStrategyProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnMemory::CustomMemoryStrategyProperty
- Defined in:
- bedrock_agent_core/cfn_memory.rb
Overview
The memory strategy.
Instance Attribute Summary collapse
-
#configuration ⇒ AWSCDK::IResolvable, ...
readonly
The memory strategy configuration.
-
#created_at ⇒ String?
readonly
Creation timestamp of the memory strategy.
-
#description ⇒ String?
readonly
The memory strategy description.
- #memory_record_schema ⇒ AWSCDK::IResolvable, ... readonly
-
#name ⇒ String
readonly
The memory strategy name.
-
#namespace_templates ⇒ Array<String>?
readonly
List of namespaces for memory strategy.
-
#namespaces ⇒ Array<String>?
readonly
The memory strategy namespaces.
-
#status ⇒ String?
readonly
The memory strategy status.
-
#strategy_id ⇒ String?
readonly
The memory strategy ID.
-
#type ⇒ String?
readonly
The memory strategy type.
-
#updated_at ⇒ String?
readonly
The memory strategy update date and time.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, configuration: nil, created_at: nil, description: nil, memory_record_schema: nil, namespaces: nil, namespace_templates: nil, status: nil, strategy_id: nil, type: nil, updated_at: nil) ⇒ CustomMemoryStrategyProperty
constructor
A new instance of CustomMemoryStrategyProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, configuration: nil, created_at: nil, description: nil, memory_record_schema: nil, namespaces: nil, namespace_templates: nil, status: nil, strategy_id: nil, type: nil, updated_at: nil) ⇒ CustomMemoryStrategyProperty
Returns a new instance of CustomMemoryStrategyProperty.
781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 |
# File 'bedrock_agent_core/cfn_memory.rb', line 781 def initialize(name:, configuration: nil, created_at: nil, description: nil, memory_record_schema: nil, namespaces: nil, namespace_templates: 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") @configuration = configuration.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnMemory::CustomConfigurationInputProperty.new(**configuration.transform_keys(&:to_sym)) : configuration Jsii::Type.check_type(@configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbk1lbW9yeS5DdXN0b21Db25maWd1cmF0aW9uSW5wdXRQcm9wZXJ0eSJ9XX19")), "configuration") unless @configuration.nil? @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? @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
#configuration ⇒ AWSCDK::IResolvable, ... (readonly)
The memory strategy configuration.
815 816 817 |
# File 'bedrock_agent_core/cfn_memory.rb', line 815 def configuration @configuration end |
#created_at ⇒ String? (readonly)
Creation timestamp of the memory strategy.
820 821 822 |
# File 'bedrock_agent_core/cfn_memory.rb', line 820 def created_at @created_at end |
#description ⇒ String? (readonly)
The memory strategy description.
825 826 827 |
# File 'bedrock_agent_core/cfn_memory.rb', line 825 def description @description end |
#memory_record_schema ⇒ AWSCDK::IResolvable, ... (readonly)
828 829 830 |
# File 'bedrock_agent_core/cfn_memory.rb', line 828 def memory_record_schema @memory_record_schema end |
#name ⇒ String (readonly)
The memory strategy name.
810 811 812 |
# File 'bedrock_agent_core/cfn_memory.rb', line 810 def name @name end |
#namespace_templates ⇒ Array<String>? (readonly)
List of namespaces for memory strategy.
838 839 840 |
# File 'bedrock_agent_core/cfn_memory.rb', line 838 def namespace_templates @namespace_templates end |
#namespaces ⇒ Array<String>? (readonly)
The memory strategy namespaces.
833 834 835 |
# File 'bedrock_agent_core/cfn_memory.rb', line 833 def namespaces @namespaces end |
#status ⇒ String? (readonly)
The memory strategy status.
843 844 845 |
# File 'bedrock_agent_core/cfn_memory.rb', line 843 def status @status end |
#strategy_id ⇒ String? (readonly)
The memory strategy ID.
848 849 850 |
# File 'bedrock_agent_core/cfn_memory.rb', line 848 def strategy_id @strategy_id end |
#type ⇒ String? (readonly)
The memory strategy type.
853 854 855 |
# File 'bedrock_agent_core/cfn_memory.rb', line 853 def type @type end |
#updated_at ⇒ String? (readonly)
The memory strategy update date and time.
858 859 860 |
# File 'bedrock_agent_core/cfn_memory.rb', line 858 def updated_at @updated_at end |
Class Method Details
.jsii_properties ⇒ Object
860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 |
# File 'bedrock_agent_core/cfn_memory.rb', line 860 def self.jsii_properties { :name => "name", :configuration => "configuration", :created_at => "createdAt", :description => "description", :memory_record_schema => "memoryRecordSchema", :namespaces => "namespaces", :namespace_templates => "namespaceTemplates", :status => "status", :strategy_id => "strategyId", :type => "type", :updated_at => "updatedAt", } end |
Instance Method Details
#to_jsii ⇒ Object
876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 |
# File 'bedrock_agent_core/cfn_memory.rb', line 876 def to_jsii result = {} result.merge!({ "name" => @name, "configuration" => @configuration, "createdAt" => @created_at, "description" => @description, "memoryRecordSchema" => @memory_record_schema, "namespaces" => @namespaces, "namespaceTemplates" => @namespace_templates, "status" => @status, "strategyId" => @strategy_id, "type" => @type, "updatedAt" => @updated_at, }) result.compact end |