> **Experimental**
>
> `@aws-cdk/aws-bedrock-alpha` is an [**experimental**](https://docs.aws.amazon.com/cdk/api/stability.html) (alpha) package: its API may change in any release, without a major version bump.
# PromptRouterProps

Properties for configuring a Prompt Router.

Used as props by: [PromptRouter](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-alpha.PromptRouter.html)

- Stability: [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: [`bedrock/inference-profiles/prompt-router.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-bedrock-alpha/bedrock/inference-profiles/prompt-router.ts#L36)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as bedrock_alpha from '@aws-cdk/aws-bedrock-alpha';

declare const bedrockFoundationModel: bedrock_alpha.BedrockFoundationModel;
const promptRouterProps: bedrock_alpha.PromptRouterProps = {
  promptRouterId: 'promptRouterId',
  routingModels: [bedrockFoundationModel],
};
```

Python:

```python
# 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]
)
```

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.bedrock.alpha.*;

BedrockFoundationModel bedrockFoundationModel;

PromptRouterProps promptRouterProps = PromptRouterProps.builder()
        .promptRouterId("promptRouterId")
        .routingModels(List.of(bedrockFoundationModel))
        .build();
```

C# / .NET:

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

BedrockFoundationModel bedrockFoundationModel;

var promptRouterProps = new PromptRouterProps {
    PromptRouterId = "promptRouterId",
    RoutingModels = new [] { bedrockFoundationModel }
};
```

Golang:

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

var bedrockFoundationModel BedrockFoundationModel

promptRouterProps := &PromptRouterProps{
	PromptRouterId: jsii.String("promptRouterId"),
	RoutingModels: []BedrockFoundationModel{
		bedrockFoundationModel,
	},
}
```

## Properties

- `promptRouterId`: string (required) — Prompt Router ID that identifies the routing configuration.

- `routingModels`: [BedrockFoundationModel](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-alpha.BedrockFoundationModel.html)[] (required) — The foundation models this router will route to.

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