CfnIntelligentPromptRouterPropsMixin
- class aws_cdk.mixins_preview.aws_bedrock.mixins.CfnIntelligentPromptRouterPropsMixin(props, *, strategy=None)
Bases:
MixinSpecifies an intelligent prompt router resource for Amazon Bedrock .
- See:
- 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:
props (
Union[CfnIntelligentPromptRouterMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- 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
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
PromptRouterTargetModelProperty
- class CfnIntelligentPromptRouterPropsMixin.PromptRouterTargetModelProperty(*, model_arn=None)
Bases:
objectThe target model for a prompt router.
- Parameters:
model_arn (
Optional[str]) – The target model’s ARN.- 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 prompt_router_target_model_property = bedrock_mixins.CfnIntelligentPromptRouterPropsMixin.PromptRouterTargetModelProperty( model_arn="modelArn" )
Attributes
RoutingCriteriaProperty
- class CfnIntelligentPromptRouterPropsMixin.RoutingCriteriaProperty(*, response_quality_difference=None)
Bases:
objectRouting criteria for a prompt router.
- Parameters:
response_quality_difference (
Union[int,float,None]) – The criteria’s response quality difference.- 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 routing_criteria_property = bedrock_mixins.CfnIntelligentPromptRouterPropsMixin.RoutingCriteriaProperty( response_quality_difference=123 )
Attributes
- response_quality_difference
The criteria’s response quality difference.