Class: AWSCDK::BedrockAgentCore::CfnCodeInterpreterCustomProps

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

Overview

Properties for defining a CfnCodeInterpreterCustom.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, network_configuration:, certificates: nil, description: nil, execution_role_arn: nil, tags: nil) ⇒ CfnCodeInterpreterCustomProps

Returns a new instance of CfnCodeInterpreterCustomProps.

Parameters:



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 = tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil?
end

Instance Attribute Details

#certificatesAWSCDK::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

#descriptionString? (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_arnString? (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

#nameString (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_configurationAWSCDK::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

#tagsHash{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
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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