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

NameResourceAccessible byRequired Params
create_resourceintelligent_prompt_routersINSERTFallbackModel, Models, PromptRouterName, RoutingCriteria, region
delete_resourceintelligent_prompt_routersDELETEIdentifier, region
update_resourceintelligent_prompt_routersUPDATEIdentifier, PatchDocument, region
list_resourcesintelligent_prompt_routers_list_onlySELECTregion
get_resourceintelligent_prompt_routersSELECTIdentifier, 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
Identifier = '{{ prompt_router_arn }}';

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
'{{ fallback_model }}',
'{{ models }}',
'{{ prompt_router_name }}',
'{{ routing_criteria }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.bedrock.intelligent_prompt_routers
SET PatchDocument = string('{{ {
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ prompt_router_arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.bedrock.intelligent_prompt_routers
WHERE
Identifier = '{{ prompt_router_arn }}' AND
region = 'us-east-1';

Permissions

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

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