SmithyTargetConfiguration

class aws_cdk.aws_bedrockagentcore.SmithyTargetConfiguration(smithy_model)

Bases: 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.

ExampleMetadata:

fixture=_generated

Example:

# 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)
Parameters:

smithy_model (ApiSchema)

Methods

bind(scope, gateway)

Binds this configuration to a construct scope Sets up necessary permissions for the gateway to access the Smithy model.

Parameters:
  • scope (Construct) – The construct scope.

  • gateway (IGateway) – The gateway that will use this target.

Return type:

TargetConfigurationConfig

Attributes

smithy_model

The Smithy model that defines the API.

target_type

The target type.

Static Methods

classmethod create(smithy_model)

Create a Smithy target configuration.

Parameters:

smithy_model (ApiSchema) – The Smithy model schema.

Return type:

SmithyTargetConfiguration

Returns:

A new SmithyTargetConfiguration instance