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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.bedrock.intelligent_prompt_routers
WHERE
Identifier = '{{ prompt_router_arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

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