Class: AWSCDK::BedrockAgentCore::CfnCodeInterpreterCustomProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnCodeInterpreterCustomProps
- Defined in:
- bedrock_agent_core/cfn_code_interpreter_custom_props.rb
Overview
Properties for defining a CfnCodeInterpreterCustom.
Instance Attribute Summary collapse
-
#certificates ⇒ AWSCDK::IResolvable, ...
readonly
List of root CA certificates.
-
#description ⇒ String?
readonly
The code interpreter description.
-
#execution_role_arn ⇒ String?
readonly
The Amazon Resource Name (ARN) of the execution role.
-
#name ⇒ String
readonly
The name of the code interpreter.
-
#network_configuration ⇒ AWSCDK::IResolvable, AWSCDK::BedrockAgentCore::CfnCodeInterpreterCustom::CodeInterpreterNetworkConfigurationProperty
readonly
The network configuration for a code interpreter.
-
#tags ⇒ Hash{String => String}?
readonly
The tags for the code interpreter.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, network_configuration:, certificates: nil, description: nil, execution_role_arn: nil, tags: nil) ⇒ CfnCodeInterpreterCustomProps
constructor
A new instance of CfnCodeInterpreterCustomProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, network_configuration:, certificates: nil, description: nil, execution_role_arn: nil, tags: nil) ⇒ CfnCodeInterpreterCustomProps
Returns a new instance of CfnCodeInterpreterCustomProps.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'bedrock_agent_core/cfn_code_interpreter_custom_props.rb', line 15 def initialize(name:, network_configuration:, certificates: nil, description: nil, execution_role_arn: nil, tags: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @network_configuration = network_configuration.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnCodeInterpreterCustom::CodeInterpreterNetworkConfigurationProperty.new(**network_configuration.transform_keys(&:to_sym)) : network_configuration Jsii::Type.check_type(@network_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkNvZGVJbnRlcnByZXRlckN1c3RvbS5Db2RlSW50ZXJwcmV0ZXJOZXR3b3JrQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "networkConfiguration") @certificates = certificates Jsii::Type.check_type(@certificates, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5DZm5Db2RlSW50ZXJwcmV0ZXJDdXN0b20uQ2VydGlmaWNhdGVQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "certificates") unless @certificates.nil? @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @execution_role_arn = execution_role_arn Jsii::Type.check_type(@execution_role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "executionRoleArn") unless @execution_role_arn.nil? @tags = Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil? end |
Instance Attribute Details
#certificates ⇒ AWSCDK::IResolvable, ... (readonly)
List of root CA certificates.
46 47 48 |
# File 'bedrock_agent_core/cfn_code_interpreter_custom_props.rb', line 46 def certificates @certificates end |
#description ⇒ String? (readonly)
The code interpreter description.
51 52 53 |
# File 'bedrock_agent_core/cfn_code_interpreter_custom_props.rb', line 51 def description @description end |
#execution_role_arn ⇒ String? (readonly)
The Amazon Resource Name (ARN) of the execution role.
56 57 58 |
# File 'bedrock_agent_core/cfn_code_interpreter_custom_props.rb', line 56 def execution_role_arn @execution_role_arn end |
#name ⇒ String (readonly)
The name of the code interpreter.
34 35 36 |
# File 'bedrock_agent_core/cfn_code_interpreter_custom_props.rb', line 34 def name @name end |
#network_configuration ⇒ AWSCDK::IResolvable, AWSCDK::BedrockAgentCore::CfnCodeInterpreterCustom::CodeInterpreterNetworkConfigurationProperty (readonly)
The network configuration for a code interpreter.
This structure defines how the code interpreter connects to the network.
41 42 43 |
# File 'bedrock_agent_core/cfn_code_interpreter_custom_props.rb', line 41 def network_configuration @network_configuration end |
#tags ⇒ Hash{String => String}? (readonly)
The tags for the code interpreter.
61 62 63 |
# File 'bedrock_agent_core/cfn_code_interpreter_custom_props.rb', line 61 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
63 64 65 66 67 68 69 70 71 72 |
# File 'bedrock_agent_core/cfn_code_interpreter_custom_props.rb', line 63 def self.jsii_properties { :name => "name", :network_configuration => "networkConfiguration", :certificates => "certificates", :description => "description", :execution_role_arn => "executionRoleArn", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'bedrock_agent_core/cfn_code_interpreter_custom_props.rb', line 74 def to_jsii result = {} result.merge!({ "name" => @name, "networkConfiguration" => @network_configuration, "certificates" => @certificates, "description" => @description, "executionRoleArn" => @execution_role_arn, "tags" => @tags, }) result.compact end |