Class: AWSCDK::BedrockAgentCore::CfnMemoryProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock_agent_core/cfn_memory_props.rb

Overview

Properties for defining a CfnMemory.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(event_expiry_duration:, name:, description: nil, encryption_key_arn: nil, indexed_keys: nil, memory_execution_role_arn: nil, memory_strategies: nil, stream_delivery_resources: nil, tags: nil) ⇒ CfnMemoryProps

Returns a new instance of CfnMemoryProps.

Parameters:



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'bedrock_agent_core/cfn_memory_props.rb', line 18

def initialize(event_expiry_duration:, name:, description: nil, encryption_key_arn: nil, indexed_keys: nil, memory_execution_role_arn: nil, memory_strategies: nil, stream_delivery_resources: nil, tags: nil)
  @event_expiry_duration = event_expiry_duration
  Jsii::Type.check_type(@event_expiry_duration, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "eventExpiryDuration")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.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?
  @indexed_keys = indexed_keys
  Jsii::Type.check_type(@indexed_keys, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5DZm5NZW1vcnkuSW5kZXhlZEtleVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "indexedKeys") unless @indexed_keys.nil?
  @memory_execution_role_arn = memory_execution_role_arn
  Jsii::Type.check_type(@memory_execution_role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "memoryExecutionRoleArn") unless @memory_execution_role_arn.nil?
  @memory_strategies = memory_strategies
  Jsii::Type.check_type(@memory_strategies, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5DZm5NZW1vcnkuTWVtb3J5U3RyYXRlZ3lQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "memoryStrategies") unless @memory_strategies.nil?
  @stream_delivery_resources = stream_delivery_resources.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnMemory::StreamDeliveryResourcesProperty.new(**stream_delivery_resources.transform_keys(&:to_sym)) : stream_delivery_resources
  Jsii::Type.check_type(@stream_delivery_resources, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbk1lbW9yeS5TdHJlYW1EZWxpdmVyeVJlc291cmNlc1Byb3BlcnR5In1dfX0=")), "streamDeliveryResources") unless @stream_delivery_resources.nil?
  @tags = tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil?
end

Instance Attribute Details

#descriptionString? (readonly)

Description of the Memory resource.



53
54
55
# File 'bedrock_agent_core/cfn_memory_props.rb', line 53

def description
  @description
end

#encryption_key_arnString? (readonly)

The memory encryption key Amazon Resource Name (ARN).



58
59
60
# File 'bedrock_agent_core/cfn_memory_props.rb', line 58

def encryption_key_arn
  @encryption_key_arn
end

#event_expiry_durationNumeric (readonly)

The event expiry configuration.



43
44
45
# File 'bedrock_agent_core/cfn_memory_props.rb', line 43

def event_expiry_duration
  @event_expiry_duration
end

#indexed_keysAWSCDK::IResolvable, ... (readonly)

List of indexed keys for the memory.



63
64
65
# File 'bedrock_agent_core/cfn_memory_props.rb', line 63

def indexed_keys
  @indexed_keys
end

#memory_execution_role_arnString? (readonly)

The memory role ARN.



68
69
70
# File 'bedrock_agent_core/cfn_memory_props.rb', line 68

def memory_execution_role_arn
  @memory_execution_role_arn
end

#memory_strategiesAWSCDK::IResolvable, ... (readonly)

The memory strategies.



73
74
75
# File 'bedrock_agent_core/cfn_memory_props.rb', line 73

def memory_strategies
  @memory_strategies
end

#nameString (readonly)

The memory name.



48
49
50
# File 'bedrock_agent_core/cfn_memory_props.rb', line 48

def name
  @name
end

#stream_delivery_resourcesAWSCDK::IResolvable, ... (readonly)



76
77
78
# File 'bedrock_agent_core/cfn_memory_props.rb', line 76

def stream_delivery_resources
  @stream_delivery_resources
end

#tagsHash{String => String}? (readonly)

The tags for the resources.



81
82
83
# File 'bedrock_agent_core/cfn_memory_props.rb', line 81

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



83
84
85
86
87
88
89
90
91
92
93
94
95
# File 'bedrock_agent_core/cfn_memory_props.rb', line 83

def self.jsii_properties
  {
    :event_expiry_duration => "eventExpiryDuration",
    :name => "name",
    :description => "description",
    :encryption_key_arn => "encryptionKeyArn",
    :indexed_keys => "indexedKeys",
    :memory_execution_role_arn => "memoryExecutionRoleArn",
    :memory_strategies => "memoryStrategies",
    :stream_delivery_resources => "streamDeliveryResources",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'bedrock_agent_core/cfn_memory_props.rb', line 97

def to_jsii
  result = {}
  result.merge!({
    "eventExpiryDuration" => @event_expiry_duration,
    "name" => @name,
    "description" => @description,
    "encryptionKeyArn" => @encryption_key_arn,
    "indexedKeys" => @indexed_keys,
    "memoryExecutionRoleArn" => @memory_execution_role_arn,
    "memoryStrategies" => @memory_strategies,
    "streamDeliveryResources" => @stream_delivery_resources,
    "tags" => @tags,
  })
  result.compact
end