Class: AWSCDK::BedrockAgentCore::CfnHarness::HarnessToolProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnHarness::HarnessToolProperty
- Defined in:
- bedrock_agent_core/cfn_harness.rb
Overview
Instance Attribute Summary collapse
- #config ⇒ AWSCDK::IResolvable, ... readonly
- #name ⇒ String? readonly
- #type ⇒ String readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, config: nil, name: nil) ⇒ HarnessToolProperty
constructor
A new instance of HarnessToolProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:, config: nil, name: nil) ⇒ HarnessToolProperty
Returns a new instance of HarnessToolProperty.
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
#config ⇒ AWSCDK::IResolvable, ... (readonly)
2436 2437 2438 |
# File 'bedrock_agent_core/cfn_harness.rb', line 2436 def config @config end |
#name ⇒ String? (readonly)
2439 2440 2441 |
# File 'bedrock_agent_core/cfn_harness.rb', line 2439 def name @name end |
#type ⇒ String (readonly)
2433 2434 2435 |
# File 'bedrock_agent_core/cfn_harness.rb', line 2433 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |