Class CfnIntelligentPromptRouter
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.bedrock.CfnIntelligentPromptRouter
- All Implemented Interfaces:
IInspectable
,ITaggableV2
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.112.0 (build de1bc80)",
date="2025-07-29T17:50:56.333Z")
@Stability(Stable)
public class CfnIntelligentPromptRouter
extends CfnResource
implements IInspectable, ITaggableV2
Specifies an intelligent prompt router resource for Amazon Bedrock .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.bedrock.*; CfnIntelligentPromptRouter cfnIntelligentPromptRouter = CfnIntelligentPromptRouter.Builder.create(this, "MyCfnIntelligentPromptRouter") .fallbackModel(PromptRouterTargetModelProperty.builder() .modelArn("modelArn") .build()) .models(List.of(PromptRouterTargetModelProperty.builder() .modelArn("modelArn") .build())) .promptRouterName("promptRouterName") .routingCriteria(RoutingCriteriaProperty.builder() .responseQualityDifference(123) .build()) // the properties below are optional .description("description") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
A fluent builder forCfnIntelligentPromptRouter
.static interface
The target model for a prompt router.static interface
Routing criteria for a prompt router.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CfnIntelligentPromptRouter
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnIntelligentPromptRouter
(software.amazon.jsii.JsiiObjectRef objRef) CfnIntelligentPromptRouter
(software.constructs.Construct scope, String id, CfnIntelligentPromptRouterProps props) -
Method Summary
Modifier and TypeMethodDescriptionIndicates the time that the prompt router was created.The Amazon Resource Name (ARN) of the prompt router.The router's status.The router's type.When the router was updated.Tag Manager which manages the tags for this resource.An optional description of the prompt router to help identify its purpose.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.The name of the prompt router.Routing criteria for a prompt router.getTags()
An array of key-value pairs to apply to this resource as tags.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setDescription
(String value) An optional description of the prompt router to help identify its purpose.void
setFallbackModel
(IResolvable value) The default model to use when the routing criteria is not met.void
The default model to use when the routing criteria is not met.void
A list of foundation models that the prompt router can route requests to.void
setModels
(IResolvable value) A list of foundation models that the prompt router can route requests to.void
setPromptRouterName
(String value) The name of the prompt router.void
setRoutingCriteria
(IResolvable value) Routing criteria for a prompt router.void
Routing criteria for a prompt router.void
An array of key-value pairs to apply to this resource as tags.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnIntelligentPromptRouter
protected CfnIntelligentPromptRouter(software.amazon.jsii.JsiiObjectRef objRef) -
CfnIntelligentPromptRouter
protected CfnIntelligentPromptRouter(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnIntelligentPromptRouter
@Stability(Stable) public CfnIntelligentPromptRouter(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnIntelligentPromptRouterProps props) - 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.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrCreatedAt
Indicates the time that the prompt router was created. -
getAttrPromptRouterArn
The Amazon Resource Name (ARN) of the prompt router. -
getAttrStatus
The router's status. -
getAttrType
The router's type. -
getAttrUpdatedAt
When the router was updated. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManager
in interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getFallbackModel
The default model to use when the routing criteria is not met. -
setFallbackModel
The default model to use when the routing criteria is not met. -
setFallbackModel
@Stability(Stable) public void setFallbackModel(@NotNull CfnIntelligentPromptRouter.PromptRouterTargetModelProperty value) The default model to use when the routing criteria is not met. -
getModels
A list of foundation models that the prompt router can route requests to. -
setModels
A list of foundation models that the prompt router can route requests to. -
setModels
A list of foundation models that the prompt router can route requests to. -
getPromptRouterName
The name of the prompt router. -
setPromptRouterName
The name of the prompt router. -
getRoutingCriteria
Routing criteria for a prompt router. -
setRoutingCriteria
Routing criteria for a prompt router. -
setRoutingCriteria
@Stability(Stable) public void setRoutingCriteria(@NotNull CfnIntelligentPromptRouter.RoutingCriteriaProperty value) Routing criteria for a prompt router. -
getDescription
An optional description of the prompt router to help identify its purpose. -
setDescription
An optional description of the prompt router to help identify its purpose. -
getTags
An array of key-value pairs to apply to this resource as tags. -
setTags
An array of key-value pairs to apply to this resource as tags.
-