Skip to content
v2.275.0

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.
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.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#
An array of key-value pairs to apply to this resource as tags.

You can use tags to categorize and manage your AWS resources.