Skip to main content

rescore_execution_plans

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

Overview

Namerescore_execution_plans
TypeResource
Idaws.kendra_ranking.rescore_execution_plans

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the rescore execution plan. (pattern: <code>arn:[a-z0-9-.]{1,63}:[a-z0-9-.]{0,63}:[a-z0-9-.]{0,63}:[a-z0-9-.]{0,63}:[^/].{0,1023}</code>)
capacity_unitsobjectThe capacity units set for the rescore execution plan. A capacity of zero indicates that the rescore execution plan is using the default capacity. For more information on the default capacity and additional capacity units, see Adjusting capacity.
created_atstring (date-time)The Unix timestamp of when the rescore execution plan was created.
descriptionstringThe description for the rescore execution plan. (pattern: <code>^\P{C}*$</code>)
error_messagestringWhen the Status field value is FAILED, the ErrorMessage field contains a message that explains why. (pattern: <code>^\P{C}*$</code>)
idstringThe identifier of the rescore execution plan. (pattern: <code>[a-zA-Z0-9][a-zA-Z0-9-]*</code>)
namestringThe name for the rescore execution plan. (pattern: <code>[a-zA-Z0-9][a-zA-Z0-9_-]*</code>)
statusstringThe current status of the rescore execution plan. When the value is ACTIVE, the rescore execution plan is ready for use. If the Status field value is FAILED, the ErrorMessage field contains a message that explains why. (CREATING, UPDATING, ACTIVE, DELETING, FAILED)
updated_atstring (date-time)The Unix timestamp of when the rescore execution plan was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_rescore_execution_planselectregionGets information about a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning the Rescore API.
create_rescore_execution_planinsertregionCreates a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning the Rescore API. You set the number of capacity units that you require for Amazon Kendra Intelligent Ranking to rescore or re-rank a search service's results. For an example of using the CreateRescoreExecutionPlan API, including using the Python and Java SDKs, see Semantically ranking a search service's results.
update_rescore_execution_planupdateregionUpdates a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning the Rescore API. You can update the number of capacity units you require for Amazon Kendra Intelligent Ranking to rescore or re-rank a search service's results.
delete_rescore_execution_plandeleteregionDeletes a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning the Rescore API.
list_rescore_execution_plansexecregionLists your rescore execution plans. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning the Rescore API.
rescoreexecregion, RescoreExecutionPlanId, SearchQuery, DocumentsRescores or re-ranks search results from a search service such as OpenSearch (self managed). You use the semantic search capabilities of Amazon Kendra Intelligent Ranking to improve the search service's 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
regionstringAWS region (default: us-east-1)

SELECT examples

Gets information about a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning the Rescore API.

SELECT
arn,
capacity_units,
created_at,
description,
error_message,
id,
name,
status,
updated_at
FROM aws.kendra_ranking.rescore_execution_plans
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning the Rescore API. You set the number of capacity units that you require for Amazon Kendra Intelligent Ranking to rescore or re-rank a search service's results. For an example of using the CreateRescoreExecutionPlan API, including using the Python and Java SDKs, see Semantically ranking a search service's results.

INSERT INTO aws.kendra_ranking.rescore_execution_plans (
Name,
Description,
CapacityUnits,
Tags,
ClientToken,
region
)
SELECT
'{{ Name }}',
'{{ Description }}',
'{{ CapacityUnits }}',
'{{ Tags }}',
'{{ ClientToken }}',
'{{ region }}'
RETURNING
arn,
id
;

UPDATE examples

Updates a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning the Rescore API. You can update the number of capacity units you require for Amazon Kendra Intelligent Ranking to rescore or re-rank a search service's results.

UPDATE aws.kendra_ranking.rescore_execution_plans
SET
Id = '{{ Id }}',
Name = '{{ Name }}',
Description = '{{ Description }}',
CapacityUnits = '{{ CapacityUnits }}'
WHERE
region = '{{ region }}' --required;

DELETE examples

Deletes a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning the Rescore API.

DELETE FROM aws.kendra_ranking.rescore_execution_plans
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

Lists your rescore execution plans. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning the Rescore API.

EXEC aws.kendra_ranking.rescore_execution_plans.list_rescore_execution_plans
@region='{{ region }}' --required
@@json=
'{
"NextToken": "{{ NextToken }}",
"MaxResults": {{ MaxResults }}
}'
;