Class: AWSCDK::BedrockAgentCore::CfnBrowserCustom::BrowserNetworkConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock_agent_core/cfn_browser_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) ⇒ BrowserNetworkConfigurationProperty

Returns a new instance of BrowserNetworkConfigurationProperty.

Parameters:



737
738
739
740
741
742
# File 'bedrock_agent_core/cfn_browser_custom.rb', line 737

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::CfnBrowserCustom::VPCConfigProperty.new(**vpc_config.transform_keys(&:to_sym)) : vpc_config
  Jsii::Type.check_type(@vpc_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkJyb3dzZXJDdXN0b20uVnBjQ29uZmlnUHJvcGVydHkifV19fQ==")), "vpcConfig") unless @vpc_config.nil?
end

Instance Attribute Details

#network_modeString (readonly)

The network mode.



748
749
750
# File 'bedrock_agent_core/cfn_browser_custom.rb', line 748

def network_mode
  @network_mode
end

Class Method Details

.jsii_propertiesObject



755
756
757
758
759
760
# File 'bedrock_agent_core/cfn_browser_custom.rb', line 755

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

Instance Method Details

#to_jsiiObject



762
763
764
765
766
767
768
769
# File 'bedrock_agent_core/cfn_browser_custom.rb', line 762

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