Class: AWSCDK::Interfaces::AWSBedrockagentcore::RuntimeReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_bedrockagentcore/runtime_reference.rb

Overview

A reference to a Runtime resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(agent_runtime_arn:, agent_runtime_id:) ⇒ RuntimeReference

Returns a new instance of RuntimeReference.

Parameters:

  • agent_runtime_arn (String)

    The ARN of the Runtime resource.

  • agent_runtime_id (String)

    The AgentRuntimeId of the Runtime resource.



9
10
11
12
13
14
# File 'interfaces/aws_bedrockagentcore/runtime_reference.rb', line 9

def initialize(agent_runtime_arn:, agent_runtime_id:)
  @agent_runtime_arn = agent_runtime_arn
  Jsii::Type.check_type(@agent_runtime_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "agentRuntimeArn")
  @agent_runtime_id = agent_runtime_id
  Jsii::Type.check_type(@agent_runtime_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "agentRuntimeId")
end

Instance Attribute Details

#agent_runtime_arnString (readonly)

The ARN of the Runtime resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/aws_bedrockagentcore/runtime_reference.rb', line 19

def agent_runtime_arn
  @agent_runtime_arn
end

#agent_runtime_idString (readonly)

The AgentRuntimeId of the Runtime resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/aws_bedrockagentcore/runtime_reference.rb', line 23

def agent_runtime_id
  @agent_runtime_id
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'interfaces/aws_bedrockagentcore/runtime_reference.rb', line 25

def self.jsii_properties
  {
    :agent_runtime_arn => "agentRuntimeArn",
    :agent_runtime_id => "agentRuntimeId",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'interfaces/aws_bedrockagentcore/runtime_reference.rb', line 32

def to_jsii
  result = {}
  result.merge!({
    "agentRuntimeArn" => @agent_runtime_arn,
    "agentRuntimeId" => @agent_runtime_id,
  })
  result.compact
end