Class: AWSCDK::BedrockAgentCore::CfnHarness::HarnessToolProperty

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(type:, config: nil, name: nil) ⇒ HarnessToolProperty

Returns a new instance of HarnessToolProperty.

Parameters:



2422
2423
2424
2425
2426
2427
2428
2429
# File 'bedrock_agent_core/cfn_harness.rb', line 2422

def initialize(type:, config: nil, name: nil)
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
  @config = config.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnHarness::HarnessToolConfigurationProperty.new(**config.transform_keys(&:to_sym)) : config
  Jsii::Type.check_type(@config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkhhcm5lc3MuSGFybmVzc1Rvb2xDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "config") unless @config.nil?
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil?
end

Instance Attribute Details

#nameString? (readonly)



2439
2440
2441
# File 'bedrock_agent_core/cfn_harness.rb', line 2439

def name
  @name
end

#typeString (readonly)



2433
2434
2435
# File 'bedrock_agent_core/cfn_harness.rb', line 2433

def type
  @type
end

Class Method Details

.jsii_propertiesObject



2441
2442
2443
2444
2445
2446
2447
# File 'bedrock_agent_core/cfn_harness.rb', line 2441

def self.jsii_properties
  {
    :type => "type",
    :config => "config",
    :name => "name",
  }
end

Instance Method Details

#to_jsiiObject



2449
2450
2451
2452
2453
2454
2455
2456
2457
# File 'bedrock_agent_core/cfn_harness.rb', line 2449

def to_jsii
  result = {}
  result.merge!({
    "type" => @type,
    "config" => @config,
    "name" => @name,
  })
  result.compact
end