Class: AWSCDK::BedrockAgentCore::CfnGatewayTarget::McpTargetConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnGatewayTarget::McpTargetConfigurationProperty
- Defined in:
- bedrock_agent_core/cfn_gateway_target.rb
Overview
The MCP target configuration for the gateway target.
Instance Attribute Summary collapse
- #api_gateway ⇒ AWSCDK::IResolvable, ... readonly
- #connector ⇒ AWSCDK::IResolvable, ... readonly
-
#lambda ⇒ AWSCDK::IResolvable, ...
readonly
The Lambda MCP configuration for the gateway target.
- #mcp_server ⇒ AWSCDK::IResolvable, ... readonly
-
#open_api_schema ⇒ AWSCDK::IResolvable, ...
readonly
The OpenApi schema for the gateway target MCP configuration.
-
#smithy_model ⇒ AWSCDK::IResolvable, ...
readonly
The target configuration for the Smithy model target.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(api_gateway: nil, connector: nil, lambda: nil, mcp_server: nil, open_api_schema: nil, smithy_model: nil) ⇒ McpTargetConfigurationProperty
constructor
A new instance of McpTargetConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(api_gateway: nil, connector: nil, lambda: nil, mcp_server: nil, open_api_schema: nil, smithy_model: nil) ⇒ McpTargetConfigurationProperty
Returns a new instance of McpTargetConfigurationProperty.
1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 |
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 1524 def initialize(api_gateway: nil, connector: nil, lambda: nil, mcp_server: nil, open_api_schema: nil, smithy_model: nil) @api_gateway = api_gateway.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnGatewayTarget::APIGatewayTargetConfigurationProperty.new(**api_gateway.transform_keys(&:to_sym)) : api_gateway Jsii::Type.check_type(@api_gateway, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkdhdGV3YXlUYXJnZXQuQXBpR2F0ZXdheVRhcmdldENvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "apiGateway") unless @api_gateway.nil? @connector = connector.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnGatewayTarget::ConnectorTargetConfigurationProperty.new(**connector.transform_keys(&:to_sym)) : connector Jsii::Type.check_type(@connector, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkdhdGV3YXlUYXJnZXQuQ29ubmVjdG9yVGFyZ2V0Q29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "connector") unless @connector.nil? @lambda = lambda.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnGatewayTarget::McpLambdaTargetConfigurationProperty.new(**lambda.transform_keys(&:to_sym)) : lambda Jsii::Type.check_type(@lambda, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkdhdGV3YXlUYXJnZXQuTWNwTGFtYmRhVGFyZ2V0Q29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "lambda") unless @lambda.nil? @mcp_server = mcp_server.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnGatewayTarget::McpServerTargetConfigurationProperty.new(**mcp_server.transform_keys(&:to_sym)) : mcp_server Jsii::Type.check_type(@mcp_server, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkdhdGV3YXlUYXJnZXQuTWNwU2VydmVyVGFyZ2V0Q29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "mcpServer") unless @mcp_server.nil? @open_api_schema = open_api_schema.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnGatewayTarget::APISchemaConfigurationProperty.new(**open_api_schema.transform_keys(&:to_sym)) : open_api_schema Jsii::Type.check_type(@open_api_schema, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkdhdGV3YXlUYXJnZXQuQXBpU2NoZW1hQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "openApiSchema") unless @open_api_schema.nil? @smithy_model = smithy_model.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnGatewayTarget::APISchemaConfigurationProperty.new(**smithy_model.transform_keys(&:to_sym)) : smithy_model Jsii::Type.check_type(@smithy_model, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkdhdGV3YXlUYXJnZXQuQXBpU2NoZW1hQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "smithyModel") unless @smithy_model.nil? end |
Instance Attribute Details
#api_gateway ⇒ AWSCDK::IResolvable, ... (readonly)
1541 1542 1543 |
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 1541 def api_gateway @api_gateway end |
#connector ⇒ AWSCDK::IResolvable, ... (readonly)
1544 1545 1546 |
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 1544 def connector @connector end |
#lambda ⇒ AWSCDK::IResolvable, ... (readonly)
The Lambda MCP configuration for the gateway target.
1549 1550 1551 |
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 1549 def lambda @lambda end |
#mcp_server ⇒ AWSCDK::IResolvable, ... (readonly)
1552 1553 1554 |
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 1552 def mcp_server @mcp_server end |
#open_api_schema ⇒ AWSCDK::IResolvable, ... (readonly)
The OpenApi schema for the gateway target MCP configuration.
1557 1558 1559 |
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 1557 def open_api_schema @open_api_schema end |
#smithy_model ⇒ AWSCDK::IResolvable, ... (readonly)
The target configuration for the Smithy model target.
1562 1563 1564 |
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 1562 def smithy_model @smithy_model end |
Class Method Details
.jsii_properties ⇒ Object
1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 |
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 1564 def self.jsii_properties { :api_gateway => "apiGateway", :connector => "connector", :lambda => "lambda", :mcp_server => "mcpServer", :open_api_schema => "openApiSchema", :smithy_model => "smithyModel", } end |
Instance Method Details
#to_jsii ⇒ Object
1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 |
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 1575 def to_jsii result = {} result.merge!({ "apiGateway" => @api_gateway, "connector" => @connector, "lambda" => @lambda, "mcpServer" => @mcp_server, "openApiSchema" => @open_api_schema, "smithyModel" => @smithy_model, }) result.compact end |