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);
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.bedrockagentcore.ITargetConfiguration
ITargetConfiguration.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionSmithyTargetConfiguration(ApiSchema smithyModel) protectedSmithyTargetConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedSmithyTargetConfiguration(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionBinds this configuration to a construct scope Sets up necessary permissions for the gateway to access the Smithy model.static SmithyTargetConfigurationCreate a Smithy target configuration.The Smithy model that defines the API.The target type.protected ObjectRenders the MCP-specific configuration.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
SmithyTargetConfiguration
protected SmithyTargetConfiguration(software.amazon.jsii.JsiiObjectRef objRef) -
SmithyTargetConfiguration
protected SmithyTargetConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
SmithyTargetConfiguration
- 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:
bindin interfaceITargetConfiguration- Specified by:
bindin classMcpTargetConfiguration- Parameters:
scope- The construct scope. This parameter is required.gateway- The gateway that will use this target. This parameter is required.
-
renderMcpConfiguration
Renders the MCP-specific configuration.- Specified by:
renderMcpConfigurationin classMcpTargetConfiguration
-
getSmithyModel
The Smithy model that defines the API. -
getTargetType
The target type.- Specified by:
getTargetTypein interfaceITargetConfiguration- Specified by:
getTargetTypein classMcpTargetConfiguration
-