create_rescore_execution_plan
async
¶
create_rescore_execution_plan(
name: RescoreExecutionPlanName,
*,
config_overrides: Optional[AsyncKendraRankingClientConfig] = None,
description: Optional[Description] = None,
capacity_units: Optional[CapacityUnitsConfiguration] = None,
tags: Optional[TagList] = None,
client_token: Optional[ClientTokenName] = None,
) -> CreateRescoreExecutionPlanResponse
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.
Parameters:
-
name(RescoreExecutionPlanName) –A name for the rescore execution plan.
-
description(Optional[Description], default:None) –A description for the rescore execution plan.
-
capacity_units(Optional[CapacityUnitsConfiguration], default:None) –You can set additional capacity units to meet the needs of your rescore execution plan. You are given a single capacity unit by default. If you want to use the default capacity, you don't set additional capacity units. For more information on the default capacity and additional capacity units, see Adjusting capacity.
-
tags(Optional[TagList], default:None) –A list of key-value pairs that identify or categorize your rescore execution plan. You can also use tags to help control access to the rescore execution plan. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @.
-
client_token(Optional[ClientTokenName], default:None) –A token that you provide to identify the request to create a rescore execution plan. Multiple calls to the
CreateRescoreExecutionPlanRequestAPI with the same client token will create only one rescore execution plan.
Raises:
-
AccessDeniedException–You don’t have sufficient access to perform this action. Please ensure you have the required permission policies and user accounts and try again.
-
ConflictException–A conflict occurred with the request. Please fix any inconsistencies with your resources and try again.
-
InternalServerException–An issue occurred with the internal server used for your Amazon Kendra Intelligent Ranking service. Please wait a few minutes and try again, or contact Support for help.
-
ServiceQuotaExceededException– -
ThrottlingException–The request was denied due to request throttling. Please reduce the number of requests and try again.
-
ValidationException–The input fails to satisfy the constraints set by the Amazon Kendra Intelligent Ranking service. Please provide the correct input and try again.
-
UnknownServiceError–The service returned an error code this client does not model.