Class: AWSCDK::Interfaces::AWSBedrockagentcore::CodeInterpreterCustomReference

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

Overview

A reference to a CodeInterpreterCustom resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code_interpreter_arn:, code_interpreter_id:) ⇒ CodeInterpreterCustomReference

Returns a new instance of CodeInterpreterCustomReference.

Parameters:

  • code_interpreter_arn (String)

    The ARN of the CodeInterpreterCustom resource.

  • code_interpreter_id (String)

    The CodeInterpreterId of the CodeInterpreterCustom resource.



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

def initialize(code_interpreter_arn:, code_interpreter_id:)
  @code_interpreter_arn = code_interpreter_arn
  Jsii::Type.check_type(@code_interpreter_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "codeInterpreterArn")
  @code_interpreter_id = code_interpreter_id
  Jsii::Type.check_type(@code_interpreter_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "codeInterpreterId")
end

Instance Attribute Details

#code_interpreter_arnString (readonly)

The ARN of the CodeInterpreterCustom resource.

Returns:

  • (String)


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

def code_interpreter_arn
  @code_interpreter_arn
end

#code_interpreter_idString (readonly)

The CodeInterpreterId of the CodeInterpreterCustom resource.

Returns:

  • (String)


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

def code_interpreter_id
  @code_interpreter_id
end

Class Method Details

.jsii_propertiesObject



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

def self.jsii_properties
  {
    :code_interpreter_arn => "codeInterpreterArn",
    :code_interpreter_id => "codeInterpreterId",
  }
end

Instance Method Details

#to_jsiiObject



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

def to_jsii
  result = {}
  result.merge!({
    "codeInterpreterArn" => @code_interpreter_arn,
    "codeInterpreterId" => @code_interpreter_id,
  })
  result.compact
end