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
-
#description ⇒ String?
The description of the memory strategy.
-
#grant(grantee) ⇒ AWSCDK::IAM::Grant?
Grants the necessary permissions to the role.
-
#render ⇒ AWSCDK::BedrockAgentCore::CfnMemory::MemoryStrategyProperty
Renders internal attributes to CloudFormation.
-
#strategy_name ⇒ String
The name of the memory strategy.
-
#strategy_type ⇒ AWSCDK::BedrockAgentCore::MemoryStrategyType
The type of memory strategy.
Class Method Details
.jsii_overridable_methods ⇒ Object
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
#description ⇒ String?
The description of the memory strategy.
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.
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 |
#render ⇒ AWSCDK::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_name ⇒ String
The name of the memory strategy.
10 11 12 |
# File 'bedrock_agent_core/i_memory_strategy.rb', line 10 def strategy_name() jsii_get_property("strategyName") end |
#strategy_type ⇒ AWSCDK::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 |