intelligent_prompt_routers
Creates, updates, deletes or gets an intelligent_prompt_router resource or lists intelligent_prompt_routers in a region
Overview
| Name | intelligent_prompt_routers |
| Type | Resource |
| Description | Definition of AWS::Bedrock::IntelligentPromptRouter Resource Type |
| Id | awscc.bedrock.intelligent_prompt_routers |
Fields
| Name | Datatype | Description |
|---|---|---|
created_at | string | Time Stamp |
description | string | Description of the Prompt Router. |
fallback_model | object | Model configuration |
models | array | List of model configuration |
prompt_router_arn | string | Arn of the Prompt Router. |
prompt_router_name | string | Name of the Prompt Router. |
routing_criteria | object | Represents the criteria used for routing requests. |
status | string | Status of a PromptRouter |
tags | array | List of Tags |
type | string | Type of a Prompt Router |
updated_at | string | Time Stamp |
region | string | AWS region. |
For more information, see AWS::Bedrock::IntelligentPromptRouter.
Methods
| Name | Accessible by | Required Params |
|---|---|---|
create_resource | INSERT | FallbackModel, Models, PromptRouterName, RoutingCriteria, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.bedrock.intelligent_prompt_routers (
FallbackModel,
Models,
PromptRouterName,
RoutingCriteria,
region
)
SELECT
'{{ FallbackModel }}',
'{{ Models }}',
'{{ PromptRouterName }}',
'{{ RoutingCriteria }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.bedrock.intelligent_prompt_routers (
Description,
FallbackModel,
Models,
PromptRouterName,
RoutingCriteria,
Tags,
region
)
SELECT
'{{ Description }}',
'{{ FallbackModel }}',
'{{ Models }}',
'{{ PromptRouterName }}',
'{{ RoutingCriteria }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: intelligent_prompt_router
props:
- name: Description
value: '{{ Description }}'
- name: FallbackModel
value:
ModelArn: '{{ ModelArn }}'
- name: Models
value:
- null
- name: PromptRouterName
value: '{{ PromptRouterName }}'
- name: RoutingCriteria
value:
ResponseQualityDifference: null
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
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