Module: AWSCDK::BedrockAgentCore::IMemoryStrategy

Included in:
ManagedMemoryStrategy, SelfManagedMemoryStrategy
Defined in:
bedrock_agent_core/i_memory_strategy.rb

Overview

Interface for Memory strategies.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.jsii_overridable_methodsObject



44
45
46
47
48
49
50
51
52
# File 'bedrock_agent_core/i_memory_strategy.rb', line 44

def self.jsii_overridable_methods
  {
    :strategy_name => { kind: :property, name: "strategyName", is_optional: false },
    :strategy_type => { kind: :property, name: "strategyType", is_optional: false },
    :description => { kind: :property, name: "description", is_optional: true },
    :grant => { kind: :method, name: "grant", is_optional: false },
    :render => { kind: :method, name: "render", is_optional: false },
  }
end

Instance Method Details

#descriptionString?

The description of the memory strategy.

Returns:

  • (String, nil)


24
25
26
# File 'bedrock_agent_core/i_memory_strategy.rb', line 24

def description()
  jsii_get_property("description")
end

#grant(grantee) ⇒ AWSCDK::IAM::Grant?

Grants the necessary permissions to the role.

Parameters:

Returns:



32
33
34
35
# File 'bedrock_agent_core/i_memory_strategy.rb', line 32

def grant(grantee)
  Jsii::Type.check_type(grantee, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklHcmFudGFibGUifQ==")), "grantee")
  jsii_call_method("grant", [grantee])
end

#renderAWSCDK::BedrockAgentCore::CfnMemory::MemoryStrategyProperty

Renders internal attributes to CloudFormation.



40
41
42
# File 'bedrock_agent_core/i_memory_strategy.rb', line 40

def render()
  jsii_call_method("render", [])
end

#strategy_nameString

The name of the memory strategy.

Returns:

  • (String)


10
11
12
# File 'bedrock_agent_core/i_memory_strategy.rb', line 10

def strategy_name()
  jsii_get_property("strategyName")
end

#strategy_typeAWSCDK::BedrockAgentCore::MemoryStrategyType

The type of memory strategy.



17
18
19
# File 'bedrock_agent_core/i_memory_strategy.rb', line 17

def strategy_type()
  jsii_get_property("strategyType")
end