Class: AWSCDK::BedrockAgentCore::CfnMemory::SummaryMemoryStrategyProperty

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) ⇒ SummaryMemoryStrategyProperty

Returns a new instance of SummaryMemoryStrategyProperty.

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 summary memory strategy.

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

    List of namespaces for memory strategy.

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

    The memory strategy status.

  • 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)

    The memory strategy update date and time.



2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
# File 'bedrock_agent_core/cfn_memory.rb', line 2124

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.



2156
2157
2158
# File 'bedrock_agent_core/cfn_memory.rb', line 2156

def created_at
  @created_at
end

#descriptionString? (readonly)

The memory strategy description.



2161
2162
2163
# File 'bedrock_agent_core/cfn_memory.rb', line 2161

def description
  @description
end

#nameString (readonly)

The memory strategy name.



2151
2152
2153
# File 'bedrock_agent_core/cfn_memory.rb', line 2151

def name
  @name
end

#namespace_templatesArray<String>? (readonly)

List of namespaces for memory strategy.



2174
2175
2176
# File 'bedrock_agent_core/cfn_memory.rb', line 2174

def namespace_templates
  @namespace_templates
end

#namespacesArray<String>? (readonly)

The summary memory strategy.



2169
2170
2171
# File 'bedrock_agent_core/cfn_memory.rb', line 2169

def namespaces
  @namespaces
end

#statusString? (readonly)

The memory strategy status.



2179
2180
2181
# File 'bedrock_agent_core/cfn_memory.rb', line 2179

def status
  @status
end

#strategy_idString? (readonly)

The memory strategy ID.



2184
2185
2186
# File 'bedrock_agent_core/cfn_memory.rb', line 2184

def strategy_id
  @strategy_id
end

#typeString? (readonly)

The memory strategy type.



2189
2190
2191
# File 'bedrock_agent_core/cfn_memory.rb', line 2189

def type
  @type
end

#updated_atString? (readonly)

The memory strategy update date and time.



2194
2195
2196
# File 'bedrock_agent_core/cfn_memory.rb', line 2194

def updated_at
  @updated_at
end

Class Method Details

.jsii_propertiesObject



2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
# File 'bedrock_agent_core/cfn_memory.rb', line 2196

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



2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
# File 'bedrock_agent_core/cfn_memory.rb', line 2211

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