CfnIntelligentPromptRouterProps Struct
Properties for defining a CfnIntelligentPromptRouter.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
const cfnIntelligentPromptRouterProps: bedrock.CfnIntelligentPromptRouterProps = {
fallbackModel: {
modelArn: 'modelArn',
},
models: [{
modelArn: 'modelArn',
}],
promptRouterName: 'promptRouterName',
routingCriteria: {
responseQualityDifference: 123,
},
// the properties below are optional
description: 'description',
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#An optional description of the prompt router to help identify its purpose.
fallbackModelIResolvable | CfnIntelligentPromptRouter.PromptRouterTargetModelPropertyfallback_modeltyping.Union[IResolvable, PromptRouterTargetModelProperty]fallbackModelIResolvableFallbackModelIResolvableFallbackModelinterface{}required#The default model to use when the routing criteria is not met.
modelsIResolvable | IResolvable | CfnIntelligentPromptRouter.PromptRouterTargetModelProperty[]modelstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, PromptRouterTargetModelProperty]]]modelsIResolvableModelsIResolvableModelsinterface{}required#A list of foundation models that the prompt router can route requests to.
At least one model must be specified.
promptRouterNamestringprompt_router_namestrpromptRouterNameStringPromptRouterNamestringPromptRouterName*stringrequired#The name of the prompt router.
The name must be unique within your AWS account in the current region.
routingCriteriaIResolvable | CfnIntelligentPromptRouter.RoutingCriteriaPropertyrouting_criteriatyping.Union[IResolvable, RoutingCriteriaProperty]routingCriteriaIResolvableRoutingCriteriaIResolvableRoutingCriteriainterface{}required#Routing criteria for a prompt router.