Class CfnIntelligentPromptRouterPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrock.CfnIntelligentPromptRouterPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIntelligentPromptRouterPropsMixin>
- Enclosing class:
CfnIntelligentPromptRouterPropsMixin
@Stability(Stable)
public static final class CfnIntelligentPromptRouterPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIntelligentPromptRouterPropsMixin>
A fluent builder for
CfnIntelligentPromptRouterPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()create()create(CfnPropertyMixinOptions options) description(String description) An optional description of the prompt router to help identify its purpose.The default model to use when the routing criteria is not met.fallbackModel(IResolvable fallbackModel) The default model to use when the routing criteria is not met.A list of foundation models that the prompt router can route requests to.models(IResolvable models) A list of foundation models that the prompt router can route requests to.promptRouterName(String promptRouterName) The name of the prompt router.Routing criteria for a prompt router.routingCriteria(IResolvable routingCriteria) Routing criteria for a prompt router.An array of key-value pairs to apply to this resource as tags.
-
Method Details
-
create
@Stability(Stable) public static CfnIntelligentPromptRouterPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnIntelligentPromptRouterPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnIntelligentPromptRouterPropsMixin.Builder.
-
description
@Stability(Stable) public CfnIntelligentPromptRouterPropsMixin.Builder description(String description) An optional description of the prompt router to help identify its purpose.- Parameters:
description- An optional description of the prompt router to help identify its purpose. This parameter is required.- Returns:
this- See Also:
-
fallbackModel
@Stability(Stable) public CfnIntelligentPromptRouterPropsMixin.Builder fallbackModel(IResolvable fallbackModel) The default model to use when the routing criteria is not met.- Parameters:
fallbackModel- The default model to use when the routing criteria is not met. This parameter is required.- Returns:
this- See Also:
-
fallbackModel
@Stability(Stable) public CfnIntelligentPromptRouterPropsMixin.Builder fallbackModel(CfnIntelligentPromptRouterPropsMixin.PromptRouterTargetModelProperty fallbackModel) The default model to use when the routing criteria is not met.- Parameters:
fallbackModel- The default model to use when the routing criteria is not met. This parameter is required.- Returns:
this- See Also:
-
models
A list of foundation models that the prompt router can route requests to.At least one model must be specified.
- Parameters:
models- A list of foundation models that the prompt router can route requests to. This parameter is required.- Returns:
this- See Also:
-
models
@Stability(Stable) public CfnIntelligentPromptRouterPropsMixin.Builder models(List<? extends Object> models) A list of foundation models that the prompt router can route requests to.At least one model must be specified.
- Parameters:
models- A list of foundation models that the prompt router can route requests to. This parameter is required.- Returns:
this- See Also:
-
promptRouterName
@Stability(Stable) public CfnIntelligentPromptRouterPropsMixin.Builder promptRouterName(String promptRouterName) The name of the prompt router.The name must be unique within your AWS account in the current region.
- Parameters:
promptRouterName- The name of the prompt router. This parameter is required.- Returns:
this- See Also:
-
routingCriteria
@Stability(Stable) public CfnIntelligentPromptRouterPropsMixin.Builder routingCriteria(IResolvable routingCriteria) Routing criteria for a prompt router.- Parameters:
routingCriteria- Routing criteria for a prompt router. This parameter is required.- Returns:
this- See Also:
-
routingCriteria
@Stability(Stable) public CfnIntelligentPromptRouterPropsMixin.Builder routingCriteria(CfnIntelligentPromptRouterPropsMixin.RoutingCriteriaProperty routingCriteria) Routing criteria for a prompt router.- Parameters:
routingCriteria- Routing criteria for a prompt router. This parameter is required.- Returns:
this- See Also:
-
tags
@Stability(Stable) public CfnIntelligentPromptRouterPropsMixin.Builder tags(List<? extends CfnTag> 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.
- Parameters:
tags- An array of key-value pairs to apply to this resource as tags. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnIntelligentPromptRouterPropsMixin>- Returns:
- a newly built instance of
CfnIntelligentPromptRouterPropsMixin.
-