Class CfnIntelligentPromptRouter.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnIntelligentPromptRouter.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIntelligentPromptRouter>
- Enclosing class:
CfnIntelligentPromptRouter
@Stability(Stable)
public static final class CfnIntelligentPromptRouter.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIntelligentPromptRouter>
A fluent builder for
CfnIntelligentPromptRouter
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
description
(String description) An optional description of the prompt router to help identify its purpose.fallbackModel
(IResolvable fallbackModel) The default model to use when the routing criteria is not met.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.routingCriteria
(IResolvable routingCriteria) Routing criteria for a prompt router.routingCriteria
(CfnIntelligentPromptRouter.RoutingCriteriaProperty 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 CfnIntelligentPromptRouter.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnIntelligentPromptRouter.Builder
.
-
fallbackModel
@Stability(Stable) public CfnIntelligentPromptRouter.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 CfnIntelligentPromptRouter.Builder fallbackModel(CfnIntelligentPromptRouter.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
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 CfnIntelligentPromptRouter.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 CfnIntelligentPromptRouter.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 CfnIntelligentPromptRouter.Builder routingCriteria(CfnIntelligentPromptRouter.RoutingCriteriaProperty routingCriteria) Routing criteria for a prompt router.- Parameters:
routingCriteria
- Routing criteria for a prompt router. This parameter is required.- Returns:
this
- See Also:
-
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:
-
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:
build
in interfacesoftware.amazon.jsii.Builder<CfnIntelligentPromptRouter>
- Returns:
- a newly built instance of
CfnIntelligentPromptRouter
.
-