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,IIntelligentPromptRouterRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:06.014Z")
@Stability(Stable)
public class CfnIntelligentPromptRouter
extends CfnResource
implements IInspectable, IIntelligentPromptRouterRef, 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 classA fluent builder forCfnIntelligentPromptRouter.static interfaceThe target model for a prompt router.static interfaceRouting criteria for a prompt router.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.bedrock.IIntelligentPromptRouterRef
IIntelligentPromptRouterRef.Jsii$Default, IIntelligentPromptRouterRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnIntelligentPromptRouter(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnIntelligentPromptRouter(software.amazon.jsii.JsiiObjectRef objRef) CfnIntelligentPromptRouter(software.constructs.Construct scope, String id, CfnIntelligentPromptRouterProps props) Create a newAWS::Bedrock::IntelligentPromptRouter. -
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 reference to a IntelligentPromptRouter resource.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.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnIntelligentPromptRouter.renderProperties(Map<String, Object> props) voidsetDescription(String value) An optional description of the prompt router to help identify its purpose.voidsetFallbackModel(IResolvable value) The default model to use when the routing criteria is not met.voidThe default model to use when the routing criteria is not met.voidA list of foundation models that the prompt router can route requests to.voidsetModels(IResolvable value) A list of foundation models that the prompt router can route requests to.voidsetPromptRouterName(String value) The name of the prompt router.voidsetRoutingCriteria(IResolvable value) Routing criteria for a prompt router.voidRouting criteria for a prompt router.voidAn 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, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods 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) Create a newAWS::Bedrock::IntelligentPromptRouter.- 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
-
isCfnIntelligentPromptRouter
Checks whether the given object is a CfnIntelligentPromptRouter.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin 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:
renderPropertiesin 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:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getIntelligentPromptRouterRef
A reference to a IntelligentPromptRouter resource.- Specified by:
getIntelligentPromptRouterRefin interfaceIIntelligentPromptRouterRef
-
getFallbackModel
The default model to use when the routing criteria is not met.Returns union: either
IResolvableorCfnIntelligentPromptRouter.PromptRouterTargetModelProperty -
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.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnIntelligentPromptRouter.PromptRouterTargetModelProperty> -
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.Returns union: either
IResolvableorCfnIntelligentPromptRouter.RoutingCriteriaProperty -
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.
-