update_rescore_execution_plan
async
¶
update_rescore_execution_plan(
id: RescoreExecutionPlanId,
*,
config_overrides: Optional[AsyncKendraRankingClientConfig] = None,
name: Optional[RescoreExecutionPlanName] = None,
description: Optional[Description] = None,
capacity_units: Optional[CapacityUnitsConfiguration] = None,
) -> None
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.
Parameters:
-
id(RescoreExecutionPlanId) –The identifier of the rescore execution plan that you want to update.
-
name(Optional[RescoreExecutionPlanName], default:None) –A new name for the rescore execution plan.
-
description(Optional[Description], default:None) –A new 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.
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.
-
ResourceNotFoundException–The resource you want to use doesn't exist. Please check you have provided the correct resource and try again.
-
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.
Source code in docs_src/capo_kendra_ranking/_services/async_kendra_ranking.py
743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 | |