Skip to main content

recommendations

Creates, updates, deletes, gets or lists a recommendations resource.

Overview

Namerecommendations
TypeResource
Idaws.bedrock_agentcore.recommendations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the recommendation. (pattern: <code>[a-zA-Z][a-zA-Z0-9_-]{0,47}</code>)
created_atstring (date-time)The timestamp when the recommendation was created.
descriptionstringThe description of the recommendation.
kms_key_arnstringThe ARN of the KMS key used to encrypt recommendation data. (pattern: <code>arn:aws(|-cn|-us-gov):kms:[a-zA-Z0-9-]*:[0-9]{12}:key/[a-zA-Z0-9-]{36}</code>)
recommendation_arnstringThe Amazon Resource Name (ARN) of the recommendation. (pattern: <code>arn:aws[a-zA-Z-]*:bedrock-agentcore:[a-z0-9-]+:[0-9]{12}:recommendation/[0-9a-zA-Z_-]{1,48}-[0-9A-Z]{10}</code>)
recommendation_configobjectThe configuration for the recommendation.
recommendation_idstringThe unique identifier of the recommendation. (pattern: <code>[0-9a-zA-Z_-]{1,48}-[0-9A-Z]{10}</code>)
recommendation_resultobjectThe result of the recommendation, containing the optimized system prompt or tool descriptions. Only present when the recommendation status is COMPLETED.
statusstringThe current status of the recommendation. (PENDING, IN_PROGRESS, COMPLETED, FAILED, DELETING)
type_stringThe type of recommendation. (SYSTEM_PROMPT_RECOMMENDATION, TOOL_DESCRIPTION_RECOMMENDATION)
updated_atstring (date-time)The timestamp when the recommendation was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_recommendationselectrecommendation_id, regionRetrieves detailed information about a recommendation, including its configuration, status, and results.
list_recommendationsselectregionmaxResults, nextToken, statusLists all recommendations in the account, with optional filtering by status.
delete_recommendationdeleterecommendation_id, regionDeletes a recommendation and its associated results.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
recommendation_idstringThe unique identifier of the recommendation to delete.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the nextToken field when making another request to return the next batch of results.
nextTokenstringIf the total number of results is greater than the maxResults value provided in the request, enter the token returned in the nextToken field in the response in this field to return the next batch of results.
statusstringOptional filter to return only recommendations with the specified status.

SELECT examples

Retrieves detailed information about a recommendation, including its configuration, status, and results.

SELECT
name,
created_at,
description,
kms_key_arn,
recommendation_arn,
recommendation_config,
recommendation_id,
recommendation_result,
status,
type_,
updated_at
FROM aws.bedrock_agentcore.recommendations
WHERE recommendation_id = '{{ recommendation_id }}' -- required
AND region = '{{ region }}' -- required
;

DELETE examples

Deletes a recommendation and its associated results.

DELETE FROM aws.bedrock_agentcore.recommendations
WHERE recommendation_id = '{{ recommendation_id }}' --required
AND region = '{{ region }}' --required
;