class SmithyTargetConfiguration
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.Agentcore.Alpha.SmithyTargetConfiguration |
Go | github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2#SmithyTargetConfiguration |
Java | software.amazon.awscdk.services.bedrock.agentcore.alpha.SmithyTargetConfiguration |
Python | aws_cdk.aws_bedrock_agentcore_alpha.SmithyTargetConfiguration |
TypeScript (source) | @aws-cdk/aws-bedrock-agentcore-alpha ยป 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 * as bedrock_agentcore_alpha from '@aws-cdk/aws-bedrock-agentcore-alpha';
declare const apiSchema: bedrock_agentcore_alpha.ApiSchema;
const smithyTargetConfiguration = new bedrock_agentcore_alpha.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
- scope
Constructโ The construct scope. - gateway
IGatewayโ The gateway that will use this target.
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 (