Class: AWSCDK::BedrockAgentCore::CfnMemory::UserPreferenceMemoryStrategyProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnMemory::UserPreferenceMemoryStrategyProperty
- Defined in:
- bedrock_agent_core/cfn_memory.rb
Overview
The memory strategy.
Instance Attribute Summary collapse
-
#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 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:, created_at: nil, description: nil, memory_record_schema: nil, namespaces: nil, namespace_templates: nil, status: nil, strategy_id: nil, type: nil, updated_at: nil) ⇒ UserPreferenceMemoryStrategyProperty
constructor
A new instance of UserPreferenceMemoryStrategyProperty.
- #to_jsii ⇒ Object
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) ⇒ UserPreferenceMemoryStrategyProperty
Returns a new instance of UserPreferenceMemoryStrategyProperty.
2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 |
# File 'bedrock_agent_core/cfn_memory.rb', line 2440 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_at ⇒ String? (readonly)
Creation timestamp of the memory strategy.
2472 2473 2474 |
# File 'bedrock_agent_core/cfn_memory.rb', line 2472 def created_at @created_at end |
#description ⇒ String? (readonly)
The memory strategy description.
2477 2478 2479 |
# File 'bedrock_agent_core/cfn_memory.rb', line 2477 def description @description end |
#memory_record_schema ⇒ AWSCDK::IResolvable, ... (readonly)
2480 2481 2482 |
# File 'bedrock_agent_core/cfn_memory.rb', line 2480 def memory_record_schema @memory_record_schema end |
#name ⇒ String (readonly)
The memory strategy name.
2467 2468 2469 |
# File 'bedrock_agent_core/cfn_memory.rb', line 2467 def name @name end |
#namespace_templates ⇒ Array<String>? (readonly)
List of namespaces for memory strategy.
2490 2491 2492 |
# File 'bedrock_agent_core/cfn_memory.rb', line 2490 def namespace_templates @namespace_templates end |
#namespaces ⇒ Array<String>? (readonly)
The memory namespaces.
2485 2486 2487 |
# File 'bedrock_agent_core/cfn_memory.rb', line 2485 def namespaces @namespaces end |
#status ⇒ String? (readonly)
The memory strategy status.
2495 2496 2497 |
# File 'bedrock_agent_core/cfn_memory.rb', line 2495 def status @status end |
#strategy_id ⇒ String? (readonly)
The memory strategy ID.
2500 2501 2502 |
# File 'bedrock_agent_core/cfn_memory.rb', line 2500 def strategy_id @strategy_id end |
#type ⇒ String? (readonly)
The memory strategy type.
2505 2506 2507 |
# File 'bedrock_agent_core/cfn_memory.rb', line 2505 def type @type end |
#updated_at ⇒ String? (readonly)
The memory strategy update date and time.
2510 2511 2512 |
# File 'bedrock_agent_core/cfn_memory.rb', line 2510 def updated_at @updated_at end |
Class Method Details
.jsii_properties ⇒ Object
2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 |
# File 'bedrock_agent_core/cfn_memory.rb', line 2512 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_jsii ⇒ Object
2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 |
# File 'bedrock_agent_core/cfn_memory.rb', line 2527 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 |