Class: AWSCDK::BedrockAgentCore::CfnGatewayTarget::McpTargetConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock_agent_core/cfn_gateway_target.rb

Overview

The MCP target configuration for the gateway target.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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.

Parameters:



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

#lambdaAWSCDK::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

#open_api_schemaAWSCDK::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_modelAWSCDK::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_propertiesObject



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_jsiiObject



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