SmithyTargetConfiguration

class aws_cdk.aws_bedrock_agentcore_alpha.SmithyTargetConfiguration(smithy_model)

Bases: McpTargetConfiguration

(experimental) 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.

Stability:

experimental

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_bedrock_agentcore_alpha as bedrock_agentcore_alpha

# api_schema: bedrock_agentcore_alpha.ApiSchema

smithy_target_configuration = bedrock_agentcore_alpha.SmithyTargetConfiguration(api_schema)
Parameters:

smithy_model (ApiSchema)

Stability:

experimental

Methods

bind(scope, gateway)

(experimental) 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.

Stability:

experimental

Return type:

TargetConfigurationConfig

Attributes

smithy_model

(experimental) The Smithy model that defines the API.

Stability:

experimental

target_type

(experimental) The target type.

Stability:

experimental

Static Methods

classmethod create(smithy_model)

(experimental) Create a Smithy target configuration.

Parameters:

smithy_model (ApiSchema) – The Smithy model schema.

Return type:

SmithyTargetConfiguration

Returns:

A new SmithyTargetConfiguration instance

Stability:

experimental