update_index
async
¶
update_index(
id: IndexId,
*,
config_overrides: Optional[AsynckendraClientConfig] = None,
name: Optional[IndexName] = None,
role_arn: Optional[RoleArn] = None,
description: Optional[Description] = None,
document_metadata_configuration_updates: Optional[
DocumentMetadataConfigurationList
] = None,
capacity_units: Optional[CapacityUnitsConfiguration] = None,
user_token_configurations: Optional[UserTokenConfigurationList] = None,
user_context_policy: Optional[UserContextPolicy] = None,
user_group_resolution_configuration: Optional[
UserGroupResolutionConfiguration
] = None,
) -> None
Updates an Amazon Kendra index.
Parameters:
-
id(IndexId) –The identifier of the index you want to update.
-
name(Optional[IndexName], default:None) –A new name for the index.
-
role_arn(Optional[RoleArn], default:None) –An Identity and Access Management (IAM) role that gives Amazon Kendra permission to access Amazon CloudWatch logs and metrics.
-
description(Optional[Description], default:None) –A new description for the index.
-
document_metadata_configuration_updates(Optional[DocumentMetadataConfigurationList], default:None) –The document metadata configuration you want to update for the index. Document metadata are fields or attributes associated with your documents. For example, the company department name associated with each document.
-
capacity_units(Optional[CapacityUnitsConfiguration], default:None) –Sets the number of additional document storage and query capacity units that should be used by the index. You can change the capacity of the index up to 5 times per day, or make 5 API calls.
If you are using extra storage units, you can't reduce the storage capacity below what is required to meet the storage needs for your index.
-
user_token_configurations(Optional[UserTokenConfigurationList], default:None) –The user token configuration.
If you're using an Amazon Kendra Gen AI Enterprise Edition index and you try to use
UserTokenConfigurationsto configure user context policy, Amazon Kendra returns aValidationExceptionerror. -
user_context_policy(Optional[UserContextPolicy], default:None) –The user context policy.
If you're using an Amazon Kendra Gen AI Enterprise Edition index, you can only use
ATTRIBUTE_FILTERto filter search results by user context. If you're using an Amazon Kendra Gen AI Enterprise Edition index and you try to useUSER_TOKENto configure user context policy, Amazon Kendra returns aValidationExceptionerror. -
user_group_resolution_configuration(Optional[UserGroupResolutionConfiguration], default:None) –Gets users and groups from IAM Identity Center identity source. To configure this, see UserGroupResolutionConfiguration. This is useful for user context filtering, where search results are filtered based on the user or their group access to documents.
If you're using an Amazon Kendra Gen AI Enterprise Edition index,
UserGroupResolutionConfigurationisn't supported.
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.
-
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 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
4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 | |