CfnIntelligentPromptRouterProps

class aws_cdk.aws_bedrock.CfnIntelligentPromptRouterProps(*, fallback_model, models, prompt_router_name, routing_criteria, description=None, tags=None)

Bases: object

Properties for defining a CfnIntelligentPromptRouter.

Parameters:
  • fallback_model (Union[IResolvable, PromptRouterTargetModelProperty, Dict[str, Any]]) – The default model to use when the routing criteria is not met.

  • models (Union[IResolvable, Sequence[Union[IResolvable, PromptRouterTargetModelProperty, Dict[str, Any]]]]) – A list of foundation models that the prompt router can route requests to. At least one model must be specified.

  • prompt_router_name (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]]) – Routing criteria for a prompt router.

  • description (Optional[str]) – An optional description of the prompt router to help identify its purpose.

  • 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-intelligentpromptrouter.html

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 import aws_bedrock as bedrock

cfn_intelligent_prompt_router_props = bedrock.CfnIntelligentPromptRouterProps(
    fallback_model=bedrock.CfnIntelligentPromptRouter.PromptRouterTargetModelProperty(
        model_arn="modelArn"
    ),
    models=[bedrock.CfnIntelligentPromptRouter.PromptRouterTargetModelProperty(
        model_arn="modelArn"
    )],
    prompt_router_name="promptRouterName",
    routing_criteria=bedrock.CfnIntelligentPromptRouter.RoutingCriteriaProperty(
        response_quality_difference=123
    ),

    # the properties below are optional
    description="description",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

description

An optional description of the prompt router to help identify its purpose.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-intelligentpromptrouter.html#cfn-bedrock-intelligentpromptrouter-description

fallback_model

The default model to use when the routing criteria is not met.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-intelligentpromptrouter.html#cfn-bedrock-intelligentpromptrouter-fallbackmodel

models

A list of foundation models that the prompt router can route requests to.

At least one model must be specified.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-intelligentpromptrouter.html#cfn-bedrock-intelligentpromptrouter-models

prompt_router_name

The name of the prompt router.

The name must be unique within your AWS account in the current region.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-intelligentpromptrouter.html#cfn-bedrock-intelligentpromptrouter-promptroutername

routing_criteria

Routing criteria for a prompt router.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-intelligentpromptrouter.html#cfn-bedrock-intelligentpromptrouter-routingcriteria

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-intelligentpromptrouter.html#cfn-bedrock-intelligentpromptrouter-tags