Class: AWSCDK::BedrockAgentCore::CfnHarness::HarnessToolConfigurationProperty

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(agent_core_browser: nil, agent_core_code_interpreter: nil, agent_core_gateway: nil, inline_function: nil, remote_mcp: nil) ⇒ HarnessToolConfigurationProperty

Returns a new instance of HarnessToolConfigurationProperty.



2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
# File 'bedrock_agent_core/cfn_harness.rb', line 2363

def initialize(agent_core_browser: nil, agent_core_code_interpreter: nil, agent_core_gateway: nil, inline_function: nil, remote_mcp: nil)
  @agent_core_browser = agent_core_browser.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnHarness::HarnessAgentCoreBrowserConfigProperty.new(**agent_core_browser.transform_keys(&:to_sym)) : agent_core_browser
  Jsii::Type.check_type(@agent_core_browser, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkhhcm5lc3MuSGFybmVzc0FnZW50Q29yZUJyb3dzZXJDb25maWdQcm9wZXJ0eSJ9XX19")), "agentCoreBrowser") unless @agent_core_browser.nil?
  @agent_core_code_interpreter = agent_core_code_interpreter.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnHarness::HarnessAgentCoreCodeInterpreterConfigProperty.new(**agent_core_code_interpreter.transform_keys(&:to_sym)) : agent_core_code_interpreter
  Jsii::Type.check_type(@agent_core_code_interpreter, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkhhcm5lc3MuSGFybmVzc0FnZW50Q29yZUNvZGVJbnRlcnByZXRlckNvbmZpZ1Byb3BlcnR5In1dfX0=")), "agentCoreCodeInterpreter") unless @agent_core_code_interpreter.nil?
  @agent_core_gateway = agent_core_gateway.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnHarness::HarnessAgentCoreGatewayConfigProperty.new(**agent_core_gateway.transform_keys(&:to_sym)) : agent_core_gateway
  Jsii::Type.check_type(@agent_core_gateway, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkhhcm5lc3MuSGFybmVzc0FnZW50Q29yZUdhdGV3YXlDb25maWdQcm9wZXJ0eSJ9XX19")), "agentCoreGateway") unless @agent_core_gateway.nil?
  @inline_function = inline_function.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnHarness::HarnessInlineFunctionConfigProperty.new(**inline_function.transform_keys(&:to_sym)) : inline_function
  Jsii::Type.check_type(@inline_function, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkhhcm5lc3MuSGFybmVzc0lubGluZUZ1bmN0aW9uQ29uZmlnUHJvcGVydHkifV19fQ==")), "inlineFunction") unless @inline_function.nil?
  @remote_mcp = remote_mcp.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnHarness::HarnessRemoteMcpConfigProperty.new(**remote_mcp.transform_keys(&:to_sym)) : remote_mcp
  Jsii::Type.check_type(@remote_mcp, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkhhcm5lc3MuSGFybmVzc1JlbW90ZU1jcENvbmZpZ1Byb3BlcnR5In1dfX0=")), "remoteMcp") unless @remote_mcp.nil?
end

Instance Attribute Details

Class Method Details

.jsii_propertiesObject



2392
2393
2394
2395
2396
2397
2398
2399
2400
# File 'bedrock_agent_core/cfn_harness.rb', line 2392

def self.jsii_properties
  {
    :agent_core_browser => "agentCoreBrowser",
    :agent_core_code_interpreter => "agentCoreCodeInterpreter",
    :agent_core_gateway => "agentCoreGateway",
    :inline_function => "inlineFunction",
    :remote_mcp => "remoteMcp",
  }
end

Instance Method Details

#to_jsiiObject



2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
# File 'bedrock_agent_core/cfn_harness.rb', line 2402

def to_jsii
  result = {}
  result.merge!({
    "agentCoreBrowser" => @agent_core_browser,
    "agentCoreCodeInterpreter" => @agent_core_code_interpreter,
    "agentCoreGateway" => @agent_core_gateway,
    "inlineFunction" => @inline_function,
    "remoteMcp" => @remote_mcp,
  })
  result.compact
end