Class: AWSCDK::BedrockAgentCore::CfnMemory::SemanticMemoryStrategyProperty

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

Overview

The memory strategy.

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, status: nil, strategy_id: nil, type: nil, updated_at: nil) ⇒ SemanticMemoryStrategyProperty

Returns a new instance of SemanticMemoryStrategyProperty.

Parameters:

  • name (String)

    The memory strategy name.

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

    Creation timestamp of the memory strategy.

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

    The memory strategy description.

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

    The memory strategy namespaces.

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

    List of namespaces for memory strategy.

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

    Status of the memory strategy.

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

    The memory strategy ID.

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

    The memory strategy type.

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

    Last update timestamp of the memory strategy.



1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
# File 'bedrock_agent_core/cfn_memory.rb', line 1750

def initialize(name:, 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")
  @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

#created_atString? (readonly)

Creation timestamp of the memory strategy.



1782
1783
1784
# File 'bedrock_agent_core/cfn_memory.rb', line 1782

def created_at
  @created_at
end

#descriptionString? (readonly)

The memory strategy description.



1787
1788
1789
# File 'bedrock_agent_core/cfn_memory.rb', line 1787

def description
  @description
end

#nameString (readonly)

The memory strategy name.



1777
1778
1779
# File 'bedrock_agent_core/cfn_memory.rb', line 1777

def name
  @name
end

#namespace_templatesArray<String>? (readonly)

List of namespaces for memory strategy.



1800
1801
1802
# File 'bedrock_agent_core/cfn_memory.rb', line 1800

def namespace_templates
  @namespace_templates
end

#namespacesArray<String>? (readonly)

The memory strategy namespaces.



1795
1796
1797
# File 'bedrock_agent_core/cfn_memory.rb', line 1795

def namespaces
  @namespaces
end

#statusString? (readonly)

Status of the memory strategy.



1805
1806
1807
# File 'bedrock_agent_core/cfn_memory.rb', line 1805

def status
  @status
end

#strategy_idString? (readonly)

The memory strategy ID.



1810
1811
1812
# File 'bedrock_agent_core/cfn_memory.rb', line 1810

def strategy_id
  @strategy_id
end

#typeString? (readonly)

The memory strategy type.



1815
1816
1817
# File 'bedrock_agent_core/cfn_memory.rb', line 1815

def type
  @type
end

#updated_atString? (readonly)

Last update timestamp of the memory strategy.



1820
1821
1822
# File 'bedrock_agent_core/cfn_memory.rb', line 1820

def updated_at
  @updated_at
end

Class Method Details

.jsii_propertiesObject



1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
# File 'bedrock_agent_core/cfn_memory.rb', line 1822

def self.jsii_properties
  {
    :name => "name",
    :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_jsiiObject



1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
# File 'bedrock_agent_core/cfn_memory.rb', line 1837

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "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