# SmithyTargetConfiguration

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.

Extends: [McpTargetConfiguration](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.McpTargetConfiguration.html) › SmithyTargetConfiguration
Implements: [ITargetConfiguration](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.ITargetConfiguration.html)
Obtainable from: SmithyTargetConfiguration.create

- Source: [`aws-bedrockagentcore/lib/gateway/targets/target-configuration.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-bedrockagentcore/lib/gateway/targets/target-configuration.ts#L268)
- Type last changed: v2.255.0 · 19 May 2026

## Example

TypeScript:

```ts
// 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);
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrockagentcore as bedrockagentcore

# api_schema: bedrockagentcore.ApiSchema

smithy_target_configuration = bedrockagentcore.SmithyTargetConfiguration(api_schema)
```

Java:

```java
// 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);
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.BedrockAgentCore;

ApiSchema apiSchema;

var smithyTargetConfiguration = new SmithyTargetConfiguration(apiSchema);
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var apiSchema ApiSchema

smithyTargetConfiguration := awscdk.Aws_bedrockagentcore.NewSmithyTargetConfiguration(apiSchema)
```

## Initializer

TypeScript:

```ts
new SmithyTargetConfiguration(smithyModel: ApiSchema)
```

Python:

```python
SmithyTargetConfiguration(smithy_model: ApiSchema)
```

Java:

```java
new SmithyTargetConfiguration(ApiSchema smithyModel)
```

C# / .NET:

```csharp
new SmithyTargetConfiguration(ApiSchema smithyModel)
```

Golang:

```go
NewSmithyTargetConfiguration(SmithyModel ApiSchema)
```

## Properties

- `smithyModel`: [ApiSchema](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.ApiSchema.html) — The Smithy model that defines the API.

- `targetType`: [McpTargetType](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.McpTargetType.html) — The target type.

## Methods

- `bind(scope: Construct, gateway: IGateway): TargetConfigurationConfig` — Binds this configuration to a construct scope Sets up necessary permissions for the gateway to access the Smithy model.

  **Parameters**

  - `scope` — The construct scope.
  - `gateway` — The gateway that will use this target.

- `create(smithyModel: ApiSchema): SmithyTargetConfiguration // chainable` (static) — Create a Smithy target configuration.

  **Parameters**

  - `smithyModel` — The Smithy model schema.

  **Returns:** A new SmithyTargetConfiguration instance
