interface CfnIntelligentPromptRouterMixinProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Bedrock.Mixins.CfnIntelligentPromptRouterMixinProps |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsbedrock/mixins#CfnIntelligentPromptRouterMixinProps |
Java | software.amazon.awscdk.mixins.preview.services.bedrock.mixins.CfnIntelligentPromptRouterMixinProps |
Python | aws_cdk.mixins_preview.aws_bedrock.mixins.CfnIntelligentPromptRouterMixinProps |
TypeScript | @aws-cdk/mixins-preview » aws_bedrock » mixins » CfnIntelligentPromptRouterMixinProps |
Properties for CfnIntelligentPromptRouterPropsMixin.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as bedrock_mixins } from '@aws-cdk/mixins-preview/aws-bedrock';
const cfnIntelligentPromptRouterMixinProps: bedrock_mixins.CfnIntelligentPromptRouterMixinProps = {
description: 'description',
fallbackModel: {
modelArn: 'modelArn',
},
models: [{
modelArn: 'modelArn',
}],
promptRouterName: 'promptRouterName',
routingCriteria: {
responseQualityDifference: 123,
},
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| description? | string | An optional description of the prompt router to help identify its purpose. |
| fallback | IResolvable | Prompt | The default model to use when the routing criteria is not met. |
| models? | IResolvable | (IResolvable | Prompt)[] | A list of foundation models that the prompt router can route requests to. |
| prompt | string | The name of the prompt router. |
| routing | IResolvable | Routing | Routing criteria for a prompt router. |
| tags? | Cfn[] | An array of key-value pairs to apply to this resource as tags. |
description?
Type:
string
(optional)
An optional description of the prompt router to help identify its purpose.
fallbackModel?
Type:
IResolvable | Prompt
(optional)
The default model to use when the routing criteria is not met.
models?
Type:
IResolvable | (IResolvable | Prompt)[]
(optional)
A list of foundation models that the prompt router can route requests to.
At least one model must be specified.
promptRouterName?
Type:
string
(optional)
The name of the prompt router.
The name must be unique within your AWS account in the current region.
routingCriteria?
Type:
IResolvable | Routing
(optional)
Routing criteria for a prompt router.
tags?
Type:
Cfn[]
(optional)
An array of key-value pairs to apply to this resource as tags.
You can use tags to categorize and manage your AWS resources.

.NET
Go
Java
Python
TypeScript