Class: AWSCDK::BedrockAgentCore::McpTargetConfiguration
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::BedrockAgentCore::McpTargetConfiguration
- Includes:
- ITargetConfiguration
- Defined in:
- bedrock_agent_core/mcp_target_configuration.rb
Overview
Abstract base class for MCP target configurations Provides common functionality for all MCP target types.
Direct Known Subclasses
APIGatewayTargetConfiguration, LambdaTargetConfiguration, McpServerTargetConfiguration, OpenAPITargetConfiguration, SmithyTargetConfiguration
Class Method Summary collapse
Instance Method Summary collapse
-
#bind(scope, gateway) ⇒ AWSCDK::BedrockAgentCore::TargetConfigurationConfig
Binds the configuration to a construct scope Sets up permissions and dependencies.
-
#initialize ⇒ McpTargetConfiguration
constructor
A new instance of McpTargetConfiguration.
-
#render_mcp_configuration ⇒ Object
Renders the MCP-specific configuration.
-
#target_type ⇒ AWSCDK::BedrockAgentCore::McpTargetType
The target type.
Constructor Details
#initialize ⇒ McpTargetConfiguration
Returns a new instance of McpTargetConfiguration.
9 10 11 |
# File 'bedrock_agent_core/mcp_target_configuration.rb', line 9 def initialize Jsii::Object.instance_method(:initialize).bind(self).call end |
Class Method Details
.jsii_overridable_methods ⇒ Object
13 14 15 16 17 18 19 |
# File 'bedrock_agent_core/mcp_target_configuration.rb', line 13 def self.jsii_overridable_methods { :target_type => { kind: :property, name: "targetType", is_optional: false }, :bind => { kind: :method, name: "bind", is_optional: false }, :render_mcp_configuration => { kind: :method, name: "renderMcpConfiguration", is_optional: false }, } end |
Instance Method Details
#bind(scope, gateway) ⇒ AWSCDK::BedrockAgentCore::TargetConfigurationConfig
Binds the configuration to a construct scope Sets up permissions and dependencies.
33 34 35 36 37 |
# File 'bedrock_agent_core/mcp_target_configuration.rb', line 33 def bind(scope, gateway) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(gateway, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5JR2F0ZXdheSJ9")), "gateway") jsii_call_method("bind", [scope, gateway]) end |
#render_mcp_configuration ⇒ Object
Renders the MCP-specific configuration.
42 43 44 |
# File 'bedrock_agent_core/mcp_target_configuration.rb', line 42 def render_mcp_configuration() jsii_call_method("renderMcpConfiguration", []) end |
#target_type ⇒ AWSCDK::BedrockAgentCore::McpTargetType
The target type.
24 25 26 |
# File 'bedrock_agent_core/mcp_target_configuration.rb', line 24 def target_type() jsii_get_property("targetType") end |