Class: AWSCDK::BedrockAgentCore::APIGatewayToolConfiguration
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::APIGatewayToolConfiguration
- Defined in:
- bedrock_agent_core/api_gateway_tool_configuration.rb
Overview
Configuration for API Gateway tools.
The API Gateway tool configuration defines which operations from your REST API are exposed as tools. It requires a list of tool filters to select operations to expose, and optionally accepts tool overrides to customize tool metadata.
Instance Attribute Summary collapse
-
#tool_filters ⇒ Array<AWSCDK::BedrockAgentCore::APIGatewayToolFilter>
readonly
List of tool filters to select operations At least one filter is required.
-
#tool_overrides ⇒ Array<AWSCDK::BedrockAgentCore::APIGatewayToolOverride>?
readonly
Optional list of tool overrides to customize tool metadata Each override must correspond to an operation selected by the filters.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(tool_filters:, tool_overrides: nil) ⇒ APIGatewayToolConfiguration
constructor
A new instance of APIGatewayToolConfiguration.
- #to_jsii ⇒ Object
Constructor Details
#initialize(tool_filters:, tool_overrides: nil) ⇒ APIGatewayToolConfiguration
Returns a new instance of APIGatewayToolConfiguration.
13 14 15 16 17 18 |
# File 'bedrock_agent_core/api_gateway_tool_configuration.rb', line 13 def initialize(tool_filters:, tool_overrides: nil) @tool_filters = tool_filters.is_a?(Array) ? tool_filters.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::APIGatewayToolFilter.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tool_filters Jsii::Type.check_type(@tool_filters, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkFwaUdhdGV3YXlUb29sRmlsdGVyIn0sImtpbmQiOiJhcnJheSJ9fQ==")), "toolFilters") @tool_overrides = tool_overrides.is_a?(Array) ? tool_overrides.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::APIGatewayToolOverride.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tool_overrides Jsii::Type.check_type(@tool_overrides, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkFwaUdhdGV3YXlUb29sT3ZlcnJpZGUifSwia2luZCI6ImFycmF5In19")), "toolOverrides") unless @tool_overrides.nil? end |
Instance Attribute Details
#tool_filters ⇒ Array<AWSCDK::BedrockAgentCore::APIGatewayToolFilter> (readonly)
List of tool filters to select operations At least one filter is required.
23 24 25 |
# File 'bedrock_agent_core/api_gateway_tool_configuration.rb', line 23 def tool_filters @tool_filters end |
#tool_overrides ⇒ Array<AWSCDK::BedrockAgentCore::APIGatewayToolOverride>? (readonly)
Default: - No tool overrides
Optional list of tool overrides to customize tool metadata Each override must correspond to an operation selected by the filters.
28 29 30 |
# File 'bedrock_agent_core/api_gateway_tool_configuration.rb', line 28 def tool_overrides @tool_overrides end |
Class Method Details
.jsii_properties ⇒ Object
30 31 32 33 34 35 |
# File 'bedrock_agent_core/api_gateway_tool_configuration.rb', line 30 def self.jsii_properties { :tool_filters => "toolFilters", :tool_overrides => "toolOverrides", } end |
Instance Method Details
#to_jsii ⇒ Object
37 38 39 40 41 42 43 44 |
# File 'bedrock_agent_core/api_gateway_tool_configuration.rb', line 37 def to_jsii result = {} result.merge!({ "toolFilters" => @tool_filters, "toolOverrides" => @tool_overrides, }) result.compact end |