Class: AWSCDK::BedrockAgentCore::MemoryAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::MemoryAttributes
- Defined in:
- bedrock_agent_core/memory_attributes.rb
Overview
Attributes for specifying an imported Memory.
Instance Attribute Summary collapse
-
#created_at ⇒ String?
readonly
The created timestamp of the memory.
-
#kms_key_arn ⇒ String?
readonly
Optional KMS encryption key associated with this memory.
-
#memory_arn ⇒ String
readonly
The ARN of the memory.
-
#role_arn ⇒ String
readonly
The ARN of the IAM role associated to the memory.
-
#status ⇒ String?
readonly
The status of the memory.
-
#updated_at ⇒ String?
readonly
When this memory was last updated.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(memory_arn:, role_arn:, created_at: nil, kms_key_arn: nil, status: nil, updated_at: nil) ⇒ MemoryAttributes
constructor
A new instance of MemoryAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(memory_arn:, role_arn:, created_at: nil, kms_key_arn: nil, status: nil, updated_at: nil) ⇒ MemoryAttributes
Returns a new instance of MemoryAttributes.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'bedrock_agent_core/memory_attributes.rb', line 13 def initialize(memory_arn:, role_arn:, created_at: nil, kms_key_arn: nil, status: nil, updated_at: nil) @memory_arn = memory_arn Jsii::Type.check_type(@memory_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "memoryArn") @role_arn = role_arn Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn") @created_at = created_at Jsii::Type.check_type(@created_at, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "createdAt") unless @created_at.nil? @kms_key_arn = kms_key_arn Jsii::Type.check_type(@kms_key_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kmsKeyArn") unless @kms_key_arn.nil? @status = status Jsii::Type.check_type(@status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "status") unless @status.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)
Default: undefined - No created timestamp is provided
The created timestamp of the memory.
40 41 42 |
# File 'bedrock_agent_core/memory_attributes.rb', line 40 def created_at @created_at end |
#kms_key_arn ⇒ String? (readonly)
Default: undefined - An AWS managed key is used
Optional KMS encryption key associated with this memory.
45 46 47 |
# File 'bedrock_agent_core/memory_attributes.rb', line 45 def kms_key_arn @kms_key_arn end |
#memory_arn ⇒ String (readonly)
The ARN of the memory.
31 32 33 |
# File 'bedrock_agent_core/memory_attributes.rb', line 31 def memory_arn @memory_arn end |
#role_arn ⇒ String (readonly)
The ARN of the IAM role associated to the memory.
35 36 37 |
# File 'bedrock_agent_core/memory_attributes.rb', line 35 def role_arn @role_arn end |
#status ⇒ String? (readonly)
Default: undefined - No status is provided
The status of the memory.
50 51 52 |
# File 'bedrock_agent_core/memory_attributes.rb', line 50 def status @status end |
#updated_at ⇒ String? (readonly)
Default: undefined - No last updated timestamp is provided
When this memory was last updated.
55 56 57 |
# File 'bedrock_agent_core/memory_attributes.rb', line 55 def updated_at @updated_at end |
Class Method Details
.jsii_properties ⇒ Object
57 58 59 60 61 62 63 64 65 66 |
# File 'bedrock_agent_core/memory_attributes.rb', line 57 def self.jsii_properties { :memory_arn => "memoryArn", :role_arn => "roleArn", :created_at => "createdAt", :kms_key_arn => "kmsKeyArn", :status => "status", :updated_at => "updatedAt", } end |
Instance Method Details
#to_jsii ⇒ Object
68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'bedrock_agent_core/memory_attributes.rb', line 68 def to_jsii result = {} result.merge!({ "memoryArn" => @memory_arn, "roleArn" => @role_arn, "createdAt" => @created_at, "kmsKeyArn" => @kms_key_arn, "status" => @status, "updatedAt" => @updated_at, }) result.compact end |