update_thesaurus
async
¶
update_thesaurus(
id: ThesaurusId,
index_id: IndexId,
*,
config_overrides: Optional[AsynckendraClientConfig] = 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/async_kendra.py
4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 | |