Class: AWSCDK::BedrockAgentCore::MemoryAttributes

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

Overview

Attributes for specifying an imported Memory.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • memory_arn (String)

    The ARN of the memory.

  • role_arn (String)

    The ARN of the IAM role associated to the memory.

  • created_at (String, nil) (defaults to: nil)

    The created timestamp of the memory.

  • kms_key_arn (String, nil) (defaults to: nil)

    Optional KMS encryption key associated with this memory.

  • status (String, nil) (defaults to: nil)

    The status of the memory.

  • updated_at (String, nil) (defaults to: nil)

    When this memory was last updated.



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_atString? (readonly)

Note:

Default: undefined - No created timestamp is provided

The created timestamp of the memory.

Returns:

  • (String, nil)


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

def created_at
  @created_at
end

#kms_key_arnString? (readonly)

Note:

Default: undefined - An AWS managed key is used

Optional KMS encryption key associated with this memory.

Returns:

  • (String, nil)


45
46
47
# File 'bedrock_agent_core/memory_attributes.rb', line 45

def kms_key_arn
  @kms_key_arn
end

#memory_arnString (readonly)

The ARN of the memory.

Returns:

  • (String)


31
32
33
# File 'bedrock_agent_core/memory_attributes.rb', line 31

def memory_arn
  @memory_arn
end

#role_arnString (readonly)

The ARN of the IAM role associated to the memory.

Returns:

  • (String)


35
36
37
# File 'bedrock_agent_core/memory_attributes.rb', line 35

def role_arn
  @role_arn
end

#statusString? (readonly)

Note:

Default: undefined - No status is provided

The status of the memory.

Returns:

  • (String, nil)


50
51
52
# File 'bedrock_agent_core/memory_attributes.rb', line 50

def status
  @status
end

#updated_atString? (readonly)

Note:

Default: undefined - No last updated timestamp is provided

When this memory was last updated.

Returns:

  • (String, nil)


55
56
57
# File 'bedrock_agent_core/memory_attributes.rb', line 55

def updated_at
  @updated_at
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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