Class SmithyTargetConfiguration

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.bedrockagentcore.McpTargetConfiguration
software.amazon.awscdk.services.bedrockagentcore.SmithyTargetConfiguration
All Implemented Interfaces:
ITargetConfiguration, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.129.0 (build eaca441)", date="2026-05-19T08:18:44.507Z") @Stability(Stable) public class SmithyTargetConfiguration extends McpTargetConfiguration
Configuration for Smithy-based MCP targets.

This configuration exposes a Smithy-modeled API as MCP tools, allowing the gateway to transform Smithy operations into tool calls.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.bedrockagentcore.*;
 ApiSchema apiSchema;
 SmithyTargetConfiguration smithyTargetConfiguration = new SmithyTargetConfiguration(apiSchema);
 
  • Constructor Details

    • SmithyTargetConfiguration

      protected SmithyTargetConfiguration(software.amazon.jsii.JsiiObjectRef objRef)
    • SmithyTargetConfiguration

      protected SmithyTargetConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • SmithyTargetConfiguration

      @Stability(Stable) public SmithyTargetConfiguration(@NotNull ApiSchema smithyModel)
      Parameters:
      smithyModel - This parameter is required.
  • Method Details

    • create

      @Stability(Stable) @NotNull public static SmithyTargetConfiguration create(@NotNull ApiSchema smithyModel)
      Create a Smithy target configuration.

      Parameters:
      smithyModel - The Smithy model schema. This parameter is required.
      Returns:
      A new SmithyTargetConfiguration instance
    • bind

      @Stability(Stable) @NotNull public TargetConfigurationConfig bind(@NotNull software.constructs.Construct scope, @NotNull IGateway gateway)
      Binds this configuration to a construct scope Sets up necessary permissions for the gateway to access the Smithy model.

      Specified by:
      bind in interface ITargetConfiguration
      Specified by:
      bind in class McpTargetConfiguration
      Parameters:
      scope - The construct scope. This parameter is required.
      gateway - The gateway that will use this target. This parameter is required.
    • renderMcpConfiguration

      @Stability(Stable) @NotNull protected Object renderMcpConfiguration()
      Renders the MCP-specific configuration.
      Specified by:
      renderMcpConfiguration in class McpTargetConfiguration
    • getSmithyModel

      @Stability(Stable) @NotNull public ApiSchema getSmithyModel()
      The Smithy model that defines the API.
    • getTargetType

      @Stability(Stable) @NotNull public McpTargetType getTargetType()
      The target type.
      Specified by:
      getTargetType in interface ITargetConfiguration
      Specified by:
      getTargetType in class McpTargetConfiguration