Skip to main content

intelligent_prompt_routers

Creates, updates, deletes or gets an intelligent_prompt_router resource or lists intelligent_prompt_routers in a region

Overview

Nameintelligent_prompt_routers
TypeResource
DescriptionDefinition of AWS::Bedrock::IntelligentPromptRouter Resource Type
Idawscc.bedrock.intelligent_prompt_routers

Fields

NameDatatypeDescription
created_atstringTime Stamp
descriptionstringDescription of the Prompt Router.
fallback_modelobjectModel configuration
modelsarrayList of model configuration
prompt_router_arnstringArn of the Prompt Router.
prompt_router_namestringName of the Prompt Router.
routing_criteriaobjectRepresents the criteria used for routing requests.
statusstringStatus of a PromptRouter
tagsarrayList of Tags
typestringType of a Prompt Router
updated_atstringTime Stamp
regionstringAWS region.

For more information, see AWS::Bedrock::IntelligentPromptRouter.

Methods

NameAccessible byRequired Params
create_resourceINSERTFallbackModel, Models, PromptRouterName, RoutingCriteria, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual intelligent_prompt_router.

SELECT
region,
created_at,
description,
fallback_model,
models,
prompt_router_arn,
prompt_router_name,
routing_criteria,
status,
tags,
type,
updated_at
FROM awscc.bedrock.intelligent_prompt_routers
WHERE region = 'us-east-1' AND data__Identifier = '<PromptRouterArn>';

INSERT example

Use the following StackQL query and manifest file to create a new intelligent_prompt_router resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.bedrock.intelligent_prompt_routers (
FallbackModel,
Models,
PromptRouterName,
RoutingCriteria,
region
)
SELECT
'{{ FallbackModel }}',
'{{ Models }}',
'{{ PromptRouterName }}',
'{{ RoutingCriteria }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.bedrock.intelligent_prompt_routers
WHERE data__Identifier = '<PromptRouterArn>'
AND region = 'us-east-1';

Permissions

To operate on the intelligent_prompt_routers resource, the following permissions are required:

Create

bedrock:CreatePromptRouter,
bedrock:GetPromptRouter,
bedrock:TagResource,
bedrock:ListTagsForResource

Read

bedrock:GetPromptRouter,
bedrock:ListTagsForResource

Update

bedrock:GetPromptRouter,
bedrock:ListTagsForResource,
bedrock:TagResource,
bedrock:UntagResource

Delete

bedrock:DeletePromptRouter,
bedrock:GetPromptRouter

List

bedrock:ListPromptRouters