Class: AWSCDK::BedrockAgentCore::CfnHarness::NetworkConfigurationProperty

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

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(network_mode:, network_mode_config: nil) ⇒ NetworkConfigurationProperty

Returns a new instance of NetworkConfigurationProperty.

Parameters:



2648
2649
2650
2651
2652
2653
# File 'bedrock_agent_core/cfn_harness.rb', line 2648

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

Instance Attribute Details

#network_modeString (readonly)



2657
2658
2659
# File 'bedrock_agent_core/cfn_harness.rb', line 2657

def network_mode
  @network_mode
end

Class Method Details

.jsii_propertiesObject



2662
2663
2664
2665
2666
2667
# File 'bedrock_agent_core/cfn_harness.rb', line 2662

def self.jsii_properties
  {
    :network_mode => "networkMode",
    :network_mode_config => "networkModeConfig",
  }
end

Instance Method Details

#to_jsiiObject



2669
2670
2671
2672
2673
2674
2675
2676
# File 'bedrock_agent_core/cfn_harness.rb', line 2669

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