Class: AWSCDK::BedrockAgentCore::CodeInterpreterCustomAttributes

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

Overview

Attributes for specifying an imported Code Interpreter Custom.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code_interpreter_arn:, role_arn:, created_at: nil, last_updated_at: nil, security_groups: nil, status: nil) ⇒ CodeInterpreterCustomAttributes

Returns a new instance of CodeInterpreterCustomAttributes.

Parameters:

  • code_interpreter_arn (String)

    The ARN of the agent.

  • role_arn (String)

    The ARN of the IAM role associated to the code interpreter.

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

    The created timestamp of the code interpreter.

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

    When this code interpreter was last updated.

  • security_groups (Array<AWSCDK::EC2::ISecurityGroup>, nil) (defaults to: nil)

    The security groups for this code interpreter, if in a VPC.

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

    The status of the code interpreter.



13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'bedrock_agent_core/code_interpreter_custom_attributes.rb', line 13

def initialize(code_interpreter_arn:, role_arn:, created_at: nil, last_updated_at: nil, security_groups: nil, status: nil)
  @code_interpreter_arn = code_interpreter_arn
  Jsii::Type.check_type(@code_interpreter_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "codeInterpreterArn")
  @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?
  @last_updated_at = last_updated_at
  Jsii::Type.check_type(@last_updated_at, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "lastUpdatedAt") unless @last_updated_at.nil?
  @security_groups = security_groups
  Jsii::Type.check_type(@security_groups, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lYzIuSVNlY3VyaXR5R3JvdXAifSwia2luZCI6ImFycmF5In19")), "securityGroups") unless @security_groups.nil?
  @status = status
  Jsii::Type.check_type(@status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "status") unless @status.nil?
end

Instance Attribute Details

#code_interpreter_arnString (readonly)

The ARN of the agent.

Returns:

  • (String)


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

def code_interpreter_arn
  @code_interpreter_arn
end

#created_atString? (readonly)

Note:

Default: undefined - No created timestamp is provided

The created timestamp of the code interpreter.

Returns:

  • (String, nil)


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

def created_at
  @created_at
end

#last_updated_atString? (readonly)

Note:

Default: undefined - No last updated timestamp is provided

When this code interpreter was last updated.

Returns:

  • (String, nil)


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

def last_updated_at
  @last_updated_at
end

#role_arnString (readonly)

The ARN of the IAM role associated to the code interpreter.

Returns:

  • (String)


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

def role_arn
  @role_arn
end

#security_groupsArray<AWSCDK::EC2::ISecurityGroup>? (readonly)

Note:

Default: - By default, the code interpreter is not in a VPC.

The security groups for this code interpreter, if in a VPC.

Returns:



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

def security_groups
  @security_groups
end

#statusString? (readonly)

Note:

Default: undefined - No status is provided

The status of the code interpreter.

Returns:

  • (String, nil)


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

def status
  @status
end

Class Method Details

.jsii_propertiesObject



57
58
59
60
61
62
63
64
65
66
# File 'bedrock_agent_core/code_interpreter_custom_attributes.rb', line 57

def self.jsii_properties
  {
    :code_interpreter_arn => "codeInterpreterArn",
    :role_arn => "roleArn",
    :created_at => "createdAt",
    :last_updated_at => "lastUpdatedAt",
    :security_groups => "securityGroups",
    :status => "status",
  }
end

Instance Method Details

#to_jsiiObject



68
69
70
71
72
73
74
75
76
77
78
79
# File 'bedrock_agent_core/code_interpreter_custom_attributes.rb', line 68

def to_jsii
  result = {}
  result.merge!({
    "codeInterpreterArn" => @code_interpreter_arn,
    "roleArn" => @role_arn,
    "createdAt" => @created_at,
    "lastUpdatedAt" => @last_updated_at,
    "securityGroups" => @security_groups,
    "status" => @status,
  })
  result.compact
end