CfnIntelligentPromptRouterMixinProps
- class aws_cdk.mixins_preview.aws_bedrock.mixins.CfnIntelligentPromptRouterMixinProps(*, description=None, fallback_model=None, models=None, prompt_router_name=None, routing_criteria=None, tags=None)
Bases:
objectProperties for CfnIntelligentPromptRouterPropsMixin.
- Parameters:
description (
Optional[str]) – An optional description of the prompt router to help identify its purpose.fallback_model (
Union[IResolvable,PromptRouterTargetModelProperty,Dict[str,Any],None]) – The default model to use when the routing criteria is not met.models (
Union[IResolvable,Sequence[Union[IResolvable,PromptRouterTargetModelProperty,Dict[str,Any]]],None]) – A list of foundation models that the prompt router can route requests to. At least one model must be specified.prompt_router_name (
Optional[str]) – The name of the prompt router. The name must be unique within your AWS account in the current region.routing_criteria (
Union[IResolvable,RoutingCriteriaProperty,Dict[str,Any],None]) – Routing criteria for a prompt router.tags (
Optional[Sequence[Union[CfnTag,Dict[str,Any]]]]) – An array of key-value pairs to apply to this resource as tags. You can use tags to categorize and manage your AWS resources.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_bedrock import mixins as bedrock_mixins cfn_intelligent_prompt_router_mixin_props = bedrock_mixins.CfnIntelligentPromptRouterMixinProps( description="description", fallback_model=bedrock_mixins.CfnIntelligentPromptRouterPropsMixin.PromptRouterTargetModelProperty( model_arn="modelArn" ), models=[bedrock_mixins.CfnIntelligentPromptRouterPropsMixin.PromptRouterTargetModelProperty( model_arn="modelArn" )], prompt_router_name="promptRouterName", routing_criteria=bedrock_mixins.CfnIntelligentPromptRouterPropsMixin.RoutingCriteriaProperty( response_quality_difference=123 ), tags=[CfnTag( key="key", value="value" )] )
Attributes
- description
An optional description of the prompt router to help identify its purpose.
- fallback_model
The default model to use when the routing criteria is not met.
- models
A list of foundation models that the prompt router can route requests to.
At least one model must be specified.
- prompt_router_name
The name of the prompt router.
The name must be unique within your AWS account in the current region.
- routing_criteria
Routing criteria for a prompt router.
- tags
An array of key-value pairs to apply to this resource as tags.
You can use tags to categorize and manage your AWS resources.