update_thesaurus
¶
update_thesaurus(
id: ThesaurusId,
index_id: IndexId,
*,
config_overrides: Optional[kendraClientConfig] = None,
name: Optional[ThesaurusName] = None,
description: Optional[Description] = None,
role_arn: Optional[RoleArn] = None,
source_s3_path: Optional[S3Path] = None,
) -> None
Updates a thesaurus for an index.
Parameters:
-
id(ThesaurusId) –The identifier of the thesaurus you want to update.
-
name(Optional[ThesaurusName], default:None) –A new name for the thesaurus.
-
index_id(IndexId) –The identifier of the index for the thesaurus.
-
description(Optional[Description], default:None) –A new description for the thesaurus.
-
role_arn(Optional[RoleArn], default:None) –An IAM role that gives Amazon Kendra permissions to access thesaurus file specified in
SourceS3Path.
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 inconsistences with your resources and try again.
-
InternalServerException–An issue occurred with the internal server used for your Amazon Kendra 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.
-
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 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/_services/kendra.py
4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 | |