Class PromptRouter.Builder

java.lang.Object
software.amazon.awscdk.services.bedrock.alpha.PromptRouter.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<PromptRouter>
Enclosing class:
PromptRouter

@Stability(Experimental) public static final class PromptRouter.Builder extends Object implements software.amazon.jsii.Builder<PromptRouter>
(experimental) A fluent builder for PromptRouter.
  • Method Details

    • create

      @Stability(Experimental) public static PromptRouter.Builder create(String region)
      Parameters:
      region - This parameter is required.
      Returns:
      a new instance of PromptRouter.Builder.
    • promptRouterId

      @Stability(Experimental) public PromptRouter.Builder promptRouterId(String promptRouterId)
      (experimental) Prompt Router ID that identifies the routing configuration.

      Parameters:
      promptRouterId - Prompt Router ID that identifies the routing configuration. This parameter is required.
      Returns:
      this
    • routingModels

      @Stability(Experimental) public PromptRouter.Builder routingModels(List<? extends BedrockFoundationModel> routingModels)
      (experimental) The foundation models this router will route to.

      The router will intelligently select between these models based on the request.

      Parameters:
      routingModels - The foundation models this router will route to. This parameter is required.
      Returns:
      this
    • build

      @Stability(Experimental) public PromptRouter build()
      Specified by:
      build in interface software.amazon.jsii.Builder<PromptRouter>
      Returns:
      a newly built instance of PromptRouter.