class SmithyTargetConfiguration
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.BedrockAgentCore.SmithyTargetConfiguration |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrockagentcore#SmithyTargetConfiguration |
Java | software.amazon.awscdk.services.bedrockagentcore.SmithyTargetConfiguration |
Python | aws_cdk.aws_bedrockagentcore.SmithyTargetConfiguration |
TypeScript (source) | aws-cdk-lib » aws_bedrockagentcore » SmithyTargetConfiguration |
Implements
ITarget
Extends
Mcp
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 { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
declare const apiSchema: bedrockagentcore.ApiSchema;
const smithyTargetConfiguration = new bedrockagentcore.SmithyTargetConfiguration(apiSchema);
Initializer
new SmithyTargetConfiguration(smithyModel: ApiSchema)
Parameters
- smithyModel
ApiSchema
Properties
| Name | Type | Description |
|---|---|---|
| smithy | Api | The Smithy model that defines the API. |
| target | Mcp | The target type. |
smithyModel
Type:
Api
The Smithy model that defines the API.
targetType
Type:
Mcp
The target type.
Methods
| Name | Description |
|---|---|
| bind(scope, gateway) | Binds this configuration to a construct scope Sets up necessary permissions for the gateway to access the Smithy model. |
| protected render | Renders the MCP-specific configuration. |
| static create(smithyModel) | Create a Smithy target configuration. |
bind(scope, gateway)
public bind(scope: Construct, gateway: IGateway): TargetConfigurationConfig
Parameters
Returns
Binds this configuration to a construct scope Sets up necessary permissions for the gateway to access the Smithy model.
protected renderMcpConfiguration()
protected renderMcpConfiguration(): any
Returns
any
Renders the MCP-specific configuration.
static create(smithyModel)
public static create(smithyModel: ApiSchema): SmithyTargetConfiguration
Parameters
- smithyModel
Api— The Smithy model schema.Schema
Returns
Create a Smithy target configuration.

.NET
Go
Java
Python
TypeScript (