CfnIntelligentPromptRouterPropsMixin

class aws_cdk.mixins_preview.aws_bedrock.mixins.CfnIntelligentPromptRouterPropsMixin(props, *, strategy=None)

Bases: Mixin

Specifies an intelligent prompt router resource for Amazon Bedrock .

See:

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

CloudformationResource:

AWS::Bedrock::IntelligentPromptRouter

Mixin:

true

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 import mixins
from aws_cdk.mixins_preview.aws_bedrock import mixins as bedrock_mixins

cfn_intelligent_prompt_router_props_mixin = bedrock_mixins.CfnIntelligentPromptRouterPropsMixin(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"
    )]
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

Create a mixin to apply properties to AWS::Bedrock::IntelligentPromptRouter.

Parameters:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['description', 'fallbackModel', 'models', 'promptRouterName', 'routingCriteria', 'tags']

Static Methods

classmethod is_mixin(x)

(experimental) Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental

PromptRouterTargetModelProperty

class CfnIntelligentPromptRouterPropsMixin.PromptRouterTargetModelProperty(*, model_arn=None)

Bases: object

The target model for a prompt router.

Parameters:

model_arn (Optional[str]) – The target model’s ARN.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-intelligentpromptrouter-promptroutertargetmodel.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.mixins_preview.aws_bedrock import mixins as bedrock_mixins

prompt_router_target_model_property = bedrock_mixins.CfnIntelligentPromptRouterPropsMixin.PromptRouterTargetModelProperty(
    model_arn="modelArn"
)

Attributes

model_arn

The target model’s ARN.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-intelligentpromptrouter-promptroutertargetmodel.html#cfn-bedrock-intelligentpromptrouter-promptroutertargetmodel-modelarn

RoutingCriteriaProperty

class CfnIntelligentPromptRouterPropsMixin.RoutingCriteriaProperty(*, response_quality_difference=None)

Bases: object

Routing criteria for a prompt router.

Parameters:

response_quality_difference (Union[int, float, None]) – The criteria’s response quality difference.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-intelligentpromptrouter-routingcriteria.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.mixins_preview.aws_bedrock import mixins as bedrock_mixins

routing_criteria_property = bedrock_mixins.CfnIntelligentPromptRouterPropsMixin.RoutingCriteriaProperty(
    response_quality_difference=123
)

Attributes

response_quality_difference

The criteria’s response quality difference.

See:

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