@cdklabs/generative-ai-cdk-constructs
@cdklabs/generative-ai-cdk-constructs / bedrock / PromptRouter
Represents an Amazon Bedrock abstraction on which you can
run the Invoke
API. This can be a Foundational Model,
a Custom Model, or an Inference Profile.
new PromptRouter(
props
,region
):PromptRouter
string
readonly
invokableArn:string
The ARN of the Bedrock invokable abstraction.
readonly
promptRouterArn:string
The ARN of the prompt router.
readonly
promptRouterId:string
The Id of the prompt router.
readonly
routingEndpoints:IInvokable
[]
The foundation models / profiles this router will route to.
IPromptRouter
.routingEndpoints
grantInvoke(
grantee
):Grant
Gives the appropriate policies to invoke and use the invokable abstraction.
IGrantable
Grant
static
fromDefaultId(defaultRouter
,region
):PromptRouter
string