Class: AWSCDK::BedrockAgentCore::CfnHarness::HarnessManagedMemoryConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnHarness::HarnessManagedMemoryConfigurationProperty
- Defined in:
- bedrock_agent_core/cfn_harness.rb
Overview
Configuration for managed memory.
The harness creates and manages a memory resource in the customer's account.
Instance Attribute Summary collapse
-
#arn ⇒ String?
readonly
The ARN of the managed memory resource.
-
#encryption_key_arn ⇒ String?
readonly
Customer-managed KMS key ARN.
-
#event_expiry_duration ⇒ Numeric?
readonly
Event retention in days.
-
#strategies ⇒ Array<String>?
readonly
Strategy types to enable.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(arn: nil, encryption_key_arn: nil, event_expiry_duration: nil, strategies: nil) ⇒ HarnessManagedMemoryConfigurationProperty
constructor
A new instance of HarnessManagedMemoryConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(arn: nil, encryption_key_arn: nil, event_expiry_duration: nil, strategies: nil) ⇒ HarnessManagedMemoryConfigurationProperty
Returns a new instance of HarnessManagedMemoryConfigurationProperty.
1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 |
# File 'bedrock_agent_core/cfn_harness.rb', line 1753 def initialize(arn: nil, encryption_key_arn: nil, event_expiry_duration: nil, strategies: nil) @arn = arn Jsii::Type.check_type(@arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "arn") unless @arn.nil? @encryption_key_arn = encryption_key_arn Jsii::Type.check_type(@encryption_key_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "encryptionKeyArn") unless @encryption_key_arn.nil? @event_expiry_duration = event_expiry_duration Jsii::Type.check_type(@event_expiry_duration, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "eventExpiryDuration") unless @event_expiry_duration.nil? @strategies = strategies Jsii::Type.check_type(@strategies, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "strategies") unless @strategies.nil? end |
Instance Attribute Details
#arn ⇒ String? (readonly)
The ARN of the managed memory resource.
Read-only, populated by the service.
1770 1771 1772 |
# File 'bedrock_agent_core/cfn_harness.rb', line 1770 def arn @arn end |
#encryption_key_arn ⇒ String? (readonly)
Customer-managed KMS key ARN.
Defaults to AWS-owned key. Not updatable after creation.
1777 1778 1779 |
# File 'bedrock_agent_core/cfn_harness.rb', line 1777 def encryption_key_arn @encryption_key_arn end |
#event_expiry_duration ⇒ Numeric? (readonly)
Event retention in days.
Defaults to 30.
1784 1785 1786 |
# File 'bedrock_agent_core/cfn_harness.rb', line 1784 def event_expiry_duration @event_expiry_duration end |
#strategies ⇒ Array<String>? (readonly)
Strategy types to enable.
Defaults to [SEMANTIC, SUMMARIZATION].
1791 1792 1793 |
# File 'bedrock_agent_core/cfn_harness.rb', line 1791 def strategies @strategies end |
Class Method Details
.jsii_properties ⇒ Object
1793 1794 1795 1796 1797 1798 1799 1800 |
# File 'bedrock_agent_core/cfn_harness.rb', line 1793 def self.jsii_properties { :arn => "arn", :encryption_key_arn => "encryptionKeyArn", :event_expiry_duration => "eventExpiryDuration", :strategies => "strategies", } end |
Instance Method Details
#to_jsii ⇒ Object
1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 |
# File 'bedrock_agent_core/cfn_harness.rb', line 1802 def to_jsii result = {} result.merge!({ "arn" => @arn, "encryptionKeyArn" => @encryption_key_arn, "eventExpiryDuration" => @event_expiry_duration, "strategies" => @strategies, }) result.compact end |