Class: AWSCDK::BedrockAgentCore::CodeInterpreterCustomProps

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

Overview

Properties for creating a CodeInterpreter resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code_interpreter_custom_name: nil, description: nil, execution_role: nil, network_configuration: nil, tags: nil) ⇒ CodeInterpreterCustomProps

Returns a new instance of CodeInterpreterCustomProps.

Parameters:

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

    The name of the code interpreter Valid characters are a-z, A-Z, 0-9, _ (underscore) The name must start with a letter and can be up to 48 characters long Pattern: [a-zA-Z][a-zA-Z0-9_]0,47.

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

    Optional description for the code interpreter Valid characters are a-z, A-Z, 0-9, _ (underscore), - (hyphen) and spaces The description can have up to 200 characters.

  • execution_role (AWSCDK::IAM::IRole, nil) (defaults to: nil)

    The IAM role that provides permissions for the code interpreter to access AWS services.

  • network_configuration (AWSCDK::BedrockAgentCore::CodeInterpreterNetworkConfiguration, nil) (defaults to: nil)

    Network configuration for code interpreter.

  • tags (Hash{String => String}, nil) (defaults to: nil)

    Tags (optional) A list of key:value pairs of tags to apply to this Code Interpreter resource.



12
13
14
15
16
17
18
19
20
21
22
23
# File 'bedrock_agent_core/code_interpreter_custom_props.rb', line 12

def initialize(code_interpreter_custom_name: nil, description: nil, execution_role: nil, network_configuration: nil, tags: nil)
  @code_interpreter_custom_name = code_interpreter_custom_name
  Jsii::Type.check_type(@code_interpreter_custom_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "codeInterpreterCustomName") unless @code_interpreter_custom_name.nil?
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @execution_role = execution_role
  Jsii::Type.check_type(@execution_role, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklSb2xlIn0=")), "executionRole") unless @execution_role.nil?
  @network_configuration = network_configuration
  Jsii::Type.check_type(@network_configuration, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5Db2RlSW50ZXJwcmV0ZXJOZXR3b3JrQ29uZmlndXJhdGlvbiJ9")), "networkConfiguration") unless @network_configuration.nil?
  @tags = tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil?
end

Instance Attribute Details

#code_interpreter_custom_nameString? (readonly)

Note:

Default: - auto generate

The name of the code interpreter Valid characters are a-z, A-Z, 0-9, _ (underscore) The name must start with a letter and can be up to 48 characters long Pattern: [a-zA-Z][a-zA-Z0-9_]0,47.

Returns:

  • (String, nil)


29
30
31
# File 'bedrock_agent_core/code_interpreter_custom_props.rb', line 29

def code_interpreter_custom_name
  @code_interpreter_custom_name
end

#descriptionString? (readonly)

Note:

Default: - No description

Optional description for the code interpreter Valid characters are a-z, A-Z, 0-9, _ (underscore), - (hyphen) and spaces The description can have up to 200 characters.

Returns:

  • (String, nil)


34
35
36
# File 'bedrock_agent_core/code_interpreter_custom_props.rb', line 34

def description
  @description
end

#execution_roleAWSCDK::IAM::IRole? (readonly)

Note:

Default: - A new role will be created.

The IAM role that provides permissions for the code interpreter to access AWS services.

Returns:



39
40
41
# File 'bedrock_agent_core/code_interpreter_custom_props.rb', line 39

def execution_role
  @execution_role
end

#network_configurationAWSCDK::BedrockAgentCore::CodeInterpreterNetworkConfiguration? (readonly)

Note:

Default: - PUBLIC network mode

Network configuration for code interpreter.



44
45
46
# File 'bedrock_agent_core/code_interpreter_custom_props.rb', line 44

def network_configuration
  @network_configuration
end

#tagsHash{String => String}? (readonly)

Note:

Default: {} - no tags

Tags (optional) A list of key:value pairs of tags to apply to this Code Interpreter resource.

Returns:

  • (Hash{String => String}, nil)


49
50
51
# File 'bedrock_agent_core/code_interpreter_custom_props.rb', line 49

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



51
52
53
54
55
56
57
58
59
# File 'bedrock_agent_core/code_interpreter_custom_props.rb', line 51

def self.jsii_properties
  {
    :code_interpreter_custom_name => "codeInterpreterCustomName",
    :description => "description",
    :execution_role => "executionRole",
    :network_configuration => "networkConfiguration",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



61
62
63
64
65
66
67
68
69
70
71
# File 'bedrock_agent_core/code_interpreter_custom_props.rb', line 61

def to_jsii
  result = {}
  result.merge!({
    "codeInterpreterCustomName" => @code_interpreter_custom_name,
    "description" => @description,
    "executionRole" => @execution_role,
    "networkConfiguration" => @network_configuration,
    "tags" => @tags,
  })
  result.compact
end