CfnDefaultPromptRouterPropsMixin

class aws_cdk.cfn_property_mixins.aws_bedrock.CfnDefaultPromptRouterPropsMixin(props, *, strategy=None)

Bases: Mixin

Definition of AWS::Bedrock::DefaultPromptRouter Resource Type.

See:

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

CloudformationResource:

AWS::Bedrock::DefaultPromptRouter

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.cfn_property_mixins import aws_bedrock as bedrock
import aws_cdk as cdk

# merge_strategy: cdk.IMergeStrategy

cfn_default_prompt_router_props_mixin = bedrock.CfnDefaultPromptRouterPropsMixin(bedrock.CfnDefaultPromptRouterMixinProps(),
    strategy=merge_strategy
)

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

Parameters:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

None

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = []

Static Methods

classmethod is_mixin(x)

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.

PromptRouterTargetModelProperty

class CfnDefaultPromptRouterPropsMixin.PromptRouterTargetModelProperty(*, model_arn=None)

Bases: object

A target model for the prompt router.

Parameters:

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

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-defaultpromptrouter-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.cfn_property_mixins import aws_bedrock as bedrock

prompt_router_target_model_property = bedrock.CfnDefaultPromptRouterPropsMixin.PromptRouterTargetModelProperty(
    model_arn="modelArn"
)

Attributes

model_arn

The target model’s ARN.

See:

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

RoutingCriteriaProperty

class CfnDefaultPromptRouterPropsMixin.RoutingCriteriaProperty(*, response_quality_difference=None)

Bases: object

Routing criteria for a prompt router.

Parameters:

response_quality_difference (Union[int, float, None]) – The response quality difference threshold for routing.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-defaultpromptrouter-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.cfn_property_mixins import aws_bedrock as bedrock

routing_criteria_property = bedrock.CfnDefaultPromptRouterPropsMixin.RoutingCriteriaProperty(
    response_quality_difference=123
)

Attributes

response_quality_difference

The response quality difference threshold for routing.

See:

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