@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
PromptRouter
readonlyinvokableArn:string
The ARN of the Bedrock invokable abstraction.
readonlypromptRouterArn:string
The ARN of the prompt router.
readonlypromptRouterId:string
The Id of the prompt router.
readonlyroutingEndpoints: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
staticfromDefaultId(defaultRouter,region):PromptRouter
string
PromptRouter