Class: AWSCDK::BedrockAgentCore::CfnCodeInterpreterCustom::CodeInterpreterNetworkConfigurationProperty

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

Overview

The network configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(network_mode:, vpc_config: nil) ⇒ CodeInterpreterNetworkConfigurationProperty

Returns a new instance of CodeInterpreterNetworkConfigurationProperty.

Parameters:



721
722
723
724
725
726
# File 'bedrock_agent_core/cfn_code_interpreter_custom.rb', line 721

def initialize(network_mode:, vpc_config: nil)
  @network_mode = network_mode
  Jsii::Type.check_type(@network_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "networkMode")
  @vpc_config = vpc_config.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnCodeInterpreterCustom::VPCConfigProperty.new(**vpc_config.transform_keys(&:to_sym)) : vpc_config
  Jsii::Type.check_type(@vpc_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkNvZGVJbnRlcnByZXRlckN1c3RvbS5WcGNDb25maWdQcm9wZXJ0eSJ9XX19")), "vpcConfig") unless @vpc_config.nil?
end

Instance Attribute Details

#network_modeString (readonly)

The network mode.



732
733
734
# File 'bedrock_agent_core/cfn_code_interpreter_custom.rb', line 732

def network_mode
  @network_mode
end

Class Method Details

.jsii_propertiesObject



739
740
741
742
743
744
# File 'bedrock_agent_core/cfn_code_interpreter_custom.rb', line 739

def self.jsii_properties
  {
    :network_mode => "networkMode",
    :vpc_config => "vpcConfig",
  }
end

Instance Method Details

#to_jsiiObject



746
747
748
749
750
751
752
753
# File 'bedrock_agent_core/cfn_code_interpreter_custom.rb', line 746

def to_jsii
  result = {}
  result.merge!({
    "networkMode" => @network_mode,
    "vpcConfig" => @vpc_config,
  })
  result.compact
end