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:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String 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

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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 class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrCreatedAt

      @Stability(Stable) @NotNull public String getAttrCreatedAt()
      Indicates the time that the prompt router was created.
    • getAttrPromptRouterArn

      @Stability(Stable) @NotNull public String getAttrPromptRouterArn()
      The Amazon Resource Name (ARN) of the prompt router.
    • getAttrStatus

      @Stability(Stable) @NotNull public String getAttrStatus()
      The router's status.
    • getAttrType

      @Stability(Stable) @NotNull public String getAttrType()
      The router's type.
    • getAttrUpdatedAt

      @Stability(Stable) @NotNull public String getAttrUpdatedAt()
      When the router was updated.
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getFallbackModel

      @Stability(Stable) @NotNull public Object getFallbackModel()
      The default model to use when the routing criteria is not met.
    • setFallbackModel

      @Stability(Stable) public void setFallbackModel(@NotNull IResolvable value)
      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

      @Stability(Stable) @NotNull public Object getModels()
      A list of foundation models that the prompt router can route requests to.
    • setModels

      @Stability(Stable) public void setModels(@NotNull IResolvable value)
      A list of foundation models that the prompt router can route requests to.
    • setModels

      @Stability(Stable) public void setModels(@NotNull List<Object> value)
      A list of foundation models that the prompt router can route requests to.
    • getPromptRouterName

      @Stability(Stable) @NotNull public String getPromptRouterName()
      The name of the prompt router.
    • setPromptRouterName

      @Stability(Stable) public void setPromptRouterName(@NotNull String value)
      The name of the prompt router.
    • getRoutingCriteria

      @Stability(Stable) @NotNull public Object getRoutingCriteria()
      Routing criteria for a prompt router.
    • setRoutingCriteria

      @Stability(Stable) public void setRoutingCriteria(@NotNull IResolvable value)
      Routing criteria for a prompt router.
    • setRoutingCriteria

      @Stability(Stable) public void setRoutingCriteria(@NotNull CfnIntelligentPromptRouter.RoutingCriteriaProperty value)
      Routing criteria for a prompt router.
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      An optional description of the prompt router to help identify its purpose.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      An optional description of the prompt router to help identify its purpose.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      An array of key-value pairs to apply to this resource as tags.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      An array of key-value pairs to apply to this resource as tags.