Class: AWSCDK::BedrockAgentCore::CodeInterpreterCustomProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CodeInterpreterCustomProps
- Defined in:
- bedrock_agent_core/code_interpreter_custom_props.rb
Overview
Properties for creating a CodeInterpreter resource.
Instance Attribute Summary collapse
-
#code_interpreter_custom_name ⇒ String?
readonly
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?
readonly
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?
readonly
The IAM role that provides permissions for the code interpreter to access AWS services.
-
#network_configuration ⇒ AWSCDK::BedrockAgentCore::CodeInterpreterNetworkConfiguration?
readonly
Network configuration for code interpreter.
-
#tags ⇒ Hash{String => String}?
readonly
Tags (optional) A list of key:value pairs of tags to apply to this Code Interpreter resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(code_interpreter_custom_name: nil, description: nil, execution_role: nil, network_configuration: nil, tags: nil) ⇒ CodeInterpreterCustomProps
constructor
A new instance of CodeInterpreterCustomProps.
- #to_jsii ⇒ Object
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.
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 = Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil? end |
Instance Attribute Details
#code_interpreter_custom_name ⇒ String? (readonly)
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.
29 30 31 |
# File 'bedrock_agent_core/code_interpreter_custom_props.rb', line 29 def code_interpreter_custom_name @code_interpreter_custom_name end |
#description ⇒ String? (readonly)
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.
34 35 36 |
# File 'bedrock_agent_core/code_interpreter_custom_props.rb', line 34 def description @description end |
#execution_role ⇒ AWSCDK::IAM::IRole? (readonly)
Default: - A new role will be created.
The IAM role that provides permissions for the code interpreter to access AWS services.
39 40 41 |
# File 'bedrock_agent_core/code_interpreter_custom_props.rb', line 39 def execution_role @execution_role end |
#network_configuration ⇒ AWSCDK::BedrockAgentCore::CodeInterpreterNetworkConfiguration? (readonly)
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 |
#tags ⇒ Hash{String => String}? (readonly)
Default: {} - no tags
Tags (optional) A list of key:value pairs of tags to apply to this Code Interpreter resource.
49 50 51 |
# File 'bedrock_agent_core/code_interpreter_custom_props.rb', line 49 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |