PromptRouterProps

class aws_cdk.aws_bedrock_alpha.PromptRouterProps(*, prompt_router_id, routing_models)

Bases: object

(experimental) Properties for configuring a Prompt Router.

Parameters:
  • prompt_router_id (str) – (experimental) Prompt Router ID that identifies the routing configuration.

  • routing_models (Sequence[BedrockFoundationModel]) – (experimental) The foundation models this router will route to. The router will intelligently select between these models based on the request.

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_alpha as bedrock_alpha

# bedrock_foundation_model: bedrock_alpha.BedrockFoundationModel

prompt_router_props = bedrock_alpha.PromptRouterProps(
    prompt_router_id="promptRouterId",
    routing_models=[bedrock_foundation_model]
)

Attributes

prompt_router_id

(experimental) Prompt Router ID that identifies the routing configuration.

Stability:

experimental

routing_models

(experimental) The foundation models this router will route to.

The router will intelligently select between these models based on the request.

Stability:

experimental