Class: AWSCDK::BedrockAgentCore::CfnRuntime::NetworkConfigurationProperty

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

Overview

The network configuration for the agent.

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:



1273
1274
1275
1276
1277
1278
# File 'bedrock_agent_core/cfn_runtime.rb', line 1273

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

Instance Attribute Details

#network_modeString (readonly)

The network mode.



1284
1285
1286
# File 'bedrock_agent_core/cfn_runtime.rb', line 1284

def network_mode
  @network_mode
end

#network_mode_configAWSCDK::IResolvable, ... (readonly)

Network mode configuration for VPC.



1289
1290
1291
# File 'bedrock_agent_core/cfn_runtime.rb', line 1289

def network_mode_config
  @network_mode_config
end

Class Method Details

.jsii_propertiesObject



1291
1292
1293
1294
1295
1296
# File 'bedrock_agent_core/cfn_runtime.rb', line 1291

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

Instance Method Details

#to_jsiiObject



1298
1299
1300
1301
1302
1303
1304
1305
# File 'bedrock_agent_core/cfn_runtime.rb', line 1298

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