KendraClient#
Auto-generated documentation for Kendra type annotations stubs module mypy-boto3-kendra.
KendraClient#
Type annotations and code completion for boto3.client("kendra")
.
boto3 documentation
# KendraClient usage example
from boto3.session import Session
from mypy_boto3_kendra.client import KendraClient
def get_kendra_client() -> KendraClient:
return Session().client("kendra")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("kendra").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("kendra")
try:
do_something(client)
except (
client.exceptions.AccessDeniedException,
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.FeaturedResultsConflictException,
client.exceptions.InternalServerException,
client.exceptions.InvalidRequestException,
client.exceptions.ResourceAlreadyExistException,
client.exceptions.ResourceInUseException,
client.exceptions.ResourceNotFoundException,
client.exceptions.ResourceUnavailableException,
client.exceptions.ServiceQuotaExceededException,
client.exceptions.ThrottlingException,
client.exceptions.ValidationException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_kendra.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
associate_entities_to_experience#
Grants users or groups in your IAM Identity Center identity source access to your Amazon Kendra experience.
Type annotations and code completion for boto3.client("kendra").associate_entities_to_experience
method.
boto3 documentation
# associate_entities_to_experience method definition
def associate_entities_to_experience(
self,
*,
Id: str,
IndexId: str,
EntityList: Sequence[EntityConfigurationTypeDef], # (1)
) -> AssociateEntitiesToExperienceResponseTypeDef: # (2)
...
# associate_entities_to_experience method usage example with argument unpacking
kwargs: AssociateEntitiesToExperienceRequestRequestTypeDef = { # (1)
"Id": ...,
"IndexId": ...,
"EntityList": ...,
}
parent.associate_entities_to_experience(**kwargs)
associate_personas_to_entities#
Defines the specific permissions of users or groups in your IAM Identity Center identity source with access to your Amazon Kendra experience.
Type annotations and code completion for boto3.client("kendra").associate_personas_to_entities
method.
boto3 documentation
# associate_personas_to_entities method definition
def associate_personas_to_entities(
self,
*,
Id: str,
IndexId: str,
Personas: Sequence[EntityPersonaConfigurationTypeDef], # (1)
) -> AssociatePersonasToEntitiesResponseTypeDef: # (2)
...
# associate_personas_to_entities method usage example with argument unpacking
kwargs: AssociatePersonasToEntitiesRequestRequestTypeDef = { # (1)
"Id": ...,
"IndexId": ...,
"Personas": ...,
}
parent.associate_personas_to_entities(**kwargs)
batch_delete_document#
Removes one or more documents from an index.
Type annotations and code completion for boto3.client("kendra").batch_delete_document
method.
boto3 documentation
# batch_delete_document method definition
def batch_delete_document(
self,
*,
IndexId: str,
DocumentIdList: Sequence[str],
DataSourceSyncJobMetricTarget: DataSourceSyncJobMetricTargetTypeDef = ..., # (1)
) -> BatchDeleteDocumentResponseTypeDef: # (2)
...
# batch_delete_document method usage example with argument unpacking
kwargs: BatchDeleteDocumentRequestRequestTypeDef = { # (1)
"IndexId": ...,
"DocumentIdList": ...,
}
parent.batch_delete_document(**kwargs)
batch_delete_featured_results_set#
Removes one or more sets of featured results.
Type annotations and code completion for boto3.client("kendra").batch_delete_featured_results_set
method.
boto3 documentation
# batch_delete_featured_results_set method definition
def batch_delete_featured_results_set(
self,
*,
IndexId: str,
FeaturedResultsSetIds: Sequence[str],
) -> BatchDeleteFeaturedResultsSetResponseTypeDef: # (1)
...
# batch_delete_featured_results_set method usage example with argument unpacking
kwargs: BatchDeleteFeaturedResultsSetRequestRequestTypeDef = { # (1)
"IndexId": ...,
"FeaturedResultsSetIds": ...,
}
parent.batch_delete_featured_results_set(**kwargs)
batch_get_document_status#
Returns the indexing status for one or more documents submitted with the BatchPutDocument API.
Type annotations and code completion for boto3.client("kendra").batch_get_document_status
method.
boto3 documentation
# batch_get_document_status method definition
def batch_get_document_status(
self,
*,
IndexId: str,
DocumentInfoList: Sequence[DocumentInfoTypeDef], # (1)
) -> BatchGetDocumentStatusResponseTypeDef: # (2)
...
# batch_get_document_status method usage example with argument unpacking
kwargs: BatchGetDocumentStatusRequestRequestTypeDef = { # (1)
"IndexId": ...,
"DocumentInfoList": ...,
}
parent.batch_get_document_status(**kwargs)
batch_put_document#
Adds one or more documents to an index.
Type annotations and code completion for boto3.client("kendra").batch_put_document
method.
boto3 documentation
# batch_put_document method definition
def batch_put_document(
self,
*,
IndexId: str,
Documents: Sequence[DocumentTypeDef], # (1)
RoleArn: str = ...,
CustomDocumentEnrichmentConfiguration: CustomDocumentEnrichmentConfigurationTypeDef = ..., # (2)
) -> BatchPutDocumentResponseTypeDef: # (3)
...
- See DocumentTypeDef
- See CustomDocumentEnrichmentConfigurationTypeDef
- See BatchPutDocumentResponseTypeDef
# batch_put_document method usage example with argument unpacking
kwargs: BatchPutDocumentRequestRequestTypeDef = { # (1)
"IndexId": ...,
"Documents": ...,
}
parent.batch_put_document(**kwargs)
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("kendra").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
clear_query_suggestions#
Clears existing query suggestions from an index.
Type annotations and code completion for boto3.client("kendra").clear_query_suggestions
method.
boto3 documentation
# clear_query_suggestions method definition
def clear_query_suggestions(
self,
*,
IndexId: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# clear_query_suggestions method usage example with argument unpacking
kwargs: ClearQuerySuggestionsRequestRequestTypeDef = { # (1)
"IndexId": ...,
}
parent.clear_query_suggestions(**kwargs)
close#
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("kendra").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
create_access_control_configuration#
Creates an access configuration for your documents.
Type annotations and code completion for boto3.client("kendra").create_access_control_configuration
method.
boto3 documentation
# create_access_control_configuration method definition
def create_access_control_configuration(
self,
*,
IndexId: str,
Name: str,
Description: str = ...,
AccessControlList: Sequence[PrincipalTypeDef] = ..., # (1)
HierarchicalAccessControlList: Sequence[HierarchicalPrincipalUnionTypeDef] = ..., # (2)
ClientToken: str = ...,
) -> CreateAccessControlConfigurationResponseTypeDef: # (3)
...
- See PrincipalTypeDef
- See HierarchicalPrincipalTypeDef HierarchicalPrincipalOutputTypeDef
- See CreateAccessControlConfigurationResponseTypeDef
# create_access_control_configuration method usage example with argument unpacking
kwargs: CreateAccessControlConfigurationRequestRequestTypeDef = { # (1)
"IndexId": ...,
"Name": ...,
}
parent.create_access_control_configuration(**kwargs)
create_data_source#
Creates a data source connector that you want to use with an Amazon Kendra index.
Type annotations and code completion for boto3.client("kendra").create_data_source
method.
boto3 documentation
# create_data_source method definition
def create_data_source(
self,
*,
Name: str,
IndexId: str,
Type: DataSourceTypeType, # (1)
Configuration: DataSourceConfigurationTypeDef = ..., # (2)
VpcConfiguration: DataSourceVpcConfigurationTypeDef = ..., # (3)
Description: str = ...,
Schedule: str = ...,
RoleArn: str = ...,
Tags: Sequence[TagTypeDef] = ..., # (4)
ClientToken: str = ...,
LanguageCode: str = ...,
CustomDocumentEnrichmentConfiguration: CustomDocumentEnrichmentConfigurationTypeDef = ..., # (5)
) -> CreateDataSourceResponseTypeDef: # (6)
...
- See DataSourceTypeType
- See DataSourceConfigurationTypeDef
- See DataSourceVpcConfigurationTypeDef
- See TagTypeDef
- See CustomDocumentEnrichmentConfigurationTypeDef
- See CreateDataSourceResponseTypeDef
# create_data_source method usage example with argument unpacking
kwargs: CreateDataSourceRequestRequestTypeDef = { # (1)
"Name": ...,
"IndexId": ...,
"Type": ...,
}
parent.create_data_source(**kwargs)
create_experience#
Creates an Amazon Kendra experience such as a search application.
Type annotations and code completion for boto3.client("kendra").create_experience
method.
boto3 documentation
# create_experience method definition
def create_experience(
self,
*,
Name: str,
IndexId: str,
RoleArn: str = ...,
Configuration: ExperienceConfigurationTypeDef = ..., # (1)
Description: str = ...,
ClientToken: str = ...,
) -> CreateExperienceResponseTypeDef: # (2)
...
# create_experience method usage example with argument unpacking
kwargs: CreateExperienceRequestRequestTypeDef = { # (1)
"Name": ...,
"IndexId": ...,
}
parent.create_experience(**kwargs)
create_faq#
Creates a set of frequently ask questions (FAQs) using a specified FAQ file stored in an Amazon S3 bucket.
Type annotations and code completion for boto3.client("kendra").create_faq
method.
boto3 documentation
# create_faq method definition
def create_faq(
self,
*,
IndexId: str,
Name: str,
S3Path: S3PathTypeDef, # (1)
RoleArn: str,
Description: str = ...,
Tags: Sequence[TagTypeDef] = ..., # (2)
FileFormat: FaqFileFormatType = ..., # (3)
ClientToken: str = ...,
LanguageCode: str = ...,
) -> CreateFaqResponseTypeDef: # (4)
...
- See S3PathTypeDef
- See TagTypeDef
- See FaqFileFormatType
- See CreateFaqResponseTypeDef
# create_faq method usage example with argument unpacking
kwargs: CreateFaqRequestRequestTypeDef = { # (1)
"IndexId": ...,
"Name": ...,
"S3Path": ...,
"RoleArn": ...,
}
parent.create_faq(**kwargs)
create_featured_results_set#
Creates a set of featured results to display at the top of the search results page.
Type annotations and code completion for boto3.client("kendra").create_featured_results_set
method.
boto3 documentation
# create_featured_results_set method definition
def create_featured_results_set(
self,
*,
IndexId: str,
FeaturedResultsSetName: str,
Description: str = ...,
ClientToken: str = ...,
Status: FeaturedResultsSetStatusType = ..., # (1)
QueryTexts: Sequence[str] = ...,
FeaturedDocuments: Sequence[FeaturedDocumentTypeDef] = ..., # (2)
Tags: Sequence[TagTypeDef] = ..., # (3)
) -> CreateFeaturedResultsSetResponseTypeDef: # (4)
...
- See FeaturedResultsSetStatusType
- See FeaturedDocumentTypeDef
- See TagTypeDef
- See CreateFeaturedResultsSetResponseTypeDef
# create_featured_results_set method usage example with argument unpacking
kwargs: CreateFeaturedResultsSetRequestRequestTypeDef = { # (1)
"IndexId": ...,
"FeaturedResultsSetName": ...,
}
parent.create_featured_results_set(**kwargs)
create_index#
Creates an Amazon Kendra index.
Type annotations and code completion for boto3.client("kendra").create_index
method.
boto3 documentation
# create_index method definition
def create_index(
self,
*,
Name: str,
RoleArn: str,
Edition: IndexEditionType = ..., # (1)
ServerSideEncryptionConfiguration: ServerSideEncryptionConfigurationTypeDef = ..., # (2)
Description: str = ...,
ClientToken: str = ...,
Tags: Sequence[TagTypeDef] = ..., # (3)
UserTokenConfigurations: Sequence[UserTokenConfigurationTypeDef] = ..., # (4)
UserContextPolicy: UserContextPolicyType = ..., # (5)
UserGroupResolutionConfiguration: UserGroupResolutionConfigurationTypeDef = ..., # (6)
) -> CreateIndexResponseTypeDef: # (7)
...
- See IndexEditionType
- See ServerSideEncryptionConfigurationTypeDef
- See TagTypeDef
- See UserTokenConfigurationTypeDef
- See UserContextPolicyType
- See UserGroupResolutionConfigurationTypeDef
- See CreateIndexResponseTypeDef
# create_index method usage example with argument unpacking
kwargs: CreateIndexRequestRequestTypeDef = { # (1)
"Name": ...,
"RoleArn": ...,
}
parent.create_index(**kwargs)
create_query_suggestions_block_list#
Creates a block list to exlcude certain queries from suggestions.
Type annotations and code completion for boto3.client("kendra").create_query_suggestions_block_list
method.
boto3 documentation
# create_query_suggestions_block_list method definition
def create_query_suggestions_block_list(
self,
*,
IndexId: str,
Name: str,
SourceS3Path: S3PathTypeDef, # (1)
RoleArn: str,
Description: str = ...,
ClientToken: str = ...,
Tags: Sequence[TagTypeDef] = ..., # (2)
) -> CreateQuerySuggestionsBlockListResponseTypeDef: # (3)
...
# create_query_suggestions_block_list method usage example with argument unpacking
kwargs: CreateQuerySuggestionsBlockListRequestRequestTypeDef = { # (1)
"IndexId": ...,
"Name": ...,
"SourceS3Path": ...,
"RoleArn": ...,
}
parent.create_query_suggestions_block_list(**kwargs)
create_thesaurus#
Creates a thesaurus for an index.
Type annotations and code completion for boto3.client("kendra").create_thesaurus
method.
boto3 documentation
# create_thesaurus method definition
def create_thesaurus(
self,
*,
IndexId: str,
Name: str,
RoleArn: str,
SourceS3Path: S3PathTypeDef, # (1)
Description: str = ...,
Tags: Sequence[TagTypeDef] = ..., # (2)
ClientToken: str = ...,
) -> CreateThesaurusResponseTypeDef: # (3)
...
- See S3PathTypeDef
- See TagTypeDef
- See CreateThesaurusResponseTypeDef
# create_thesaurus method usage example with argument unpacking
kwargs: CreateThesaurusRequestRequestTypeDef = { # (1)
"IndexId": ...,
"Name": ...,
"RoleArn": ...,
"SourceS3Path": ...,
}
parent.create_thesaurus(**kwargs)
delete_access_control_configuration#
Deletes an access control configuration that you created for your documents in an index.
Type annotations and code completion for boto3.client("kendra").delete_access_control_configuration
method.
boto3 documentation
# delete_access_control_configuration method definition
def delete_access_control_configuration(
self,
*,
IndexId: str,
Id: str,
) -> Dict[str, Any]:
...
# delete_access_control_configuration method usage example with argument unpacking
kwargs: DeleteAccessControlConfigurationRequestRequestTypeDef = { # (1)
"IndexId": ...,
"Id": ...,
}
parent.delete_access_control_configuration(**kwargs)
delete_data_source#
Deletes an Amazon Kendra data source connector.
Type annotations and code completion for boto3.client("kendra").delete_data_source
method.
boto3 documentation
# delete_data_source method definition
def delete_data_source(
self,
*,
Id: str,
IndexId: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_data_source method usage example with argument unpacking
kwargs: DeleteDataSourceRequestRequestTypeDef = { # (1)
"Id": ...,
"IndexId": ...,
}
parent.delete_data_source(**kwargs)
delete_experience#
Deletes your Amazon Kendra experience such as a search application.
Type annotations and code completion for boto3.client("kendra").delete_experience
method.
boto3 documentation
# delete_experience method definition
def delete_experience(
self,
*,
Id: str,
IndexId: str,
) -> Dict[str, Any]:
...
# delete_experience method usage example with argument unpacking
kwargs: DeleteExperienceRequestRequestTypeDef = { # (1)
"Id": ...,
"IndexId": ...,
}
parent.delete_experience(**kwargs)
delete_faq#
Removes an FAQ from an index.
Type annotations and code completion for boto3.client("kendra").delete_faq
method.
boto3 documentation
# delete_faq method definition
def delete_faq(
self,
*,
Id: str,
IndexId: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_faq method usage example with argument unpacking
kwargs: DeleteFaqRequestRequestTypeDef = { # (1)
"Id": ...,
"IndexId": ...,
}
parent.delete_faq(**kwargs)
delete_index#
Deletes an Amazon Kendra index.
Type annotations and code completion for boto3.client("kendra").delete_index
method.
boto3 documentation
# delete_index method definition
def delete_index(
self,
*,
Id: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_index method usage example with argument unpacking
kwargs: DeleteIndexRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.delete_index(**kwargs)
delete_principal_mapping#
Deletes a group so that all users and sub groups that belong to the group can no longer access documents only available to that group.
Type annotations and code completion for boto3.client("kendra").delete_principal_mapping
method.
boto3 documentation
# delete_principal_mapping method definition
def delete_principal_mapping(
self,
*,
IndexId: str,
GroupId: str,
DataSourceId: str = ...,
OrderingId: int = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_principal_mapping method usage example with argument unpacking
kwargs: DeletePrincipalMappingRequestRequestTypeDef = { # (1)
"IndexId": ...,
"GroupId": ...,
}
parent.delete_principal_mapping(**kwargs)
delete_query_suggestions_block_list#
Deletes a block list used for query suggestions for an index.
Type annotations and code completion for boto3.client("kendra").delete_query_suggestions_block_list
method.
boto3 documentation
# delete_query_suggestions_block_list method definition
def delete_query_suggestions_block_list(
self,
*,
IndexId: str,
Id: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_query_suggestions_block_list method usage example with argument unpacking
kwargs: DeleteQuerySuggestionsBlockListRequestRequestTypeDef = { # (1)
"IndexId": ...,
"Id": ...,
}
parent.delete_query_suggestions_block_list(**kwargs)
delete_thesaurus#
Deletes an Amazon Kendra thesaurus.
Type annotations and code completion for boto3.client("kendra").delete_thesaurus
method.
boto3 documentation
# delete_thesaurus method definition
def delete_thesaurus(
self,
*,
Id: str,
IndexId: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_thesaurus method usage example with argument unpacking
kwargs: DeleteThesaurusRequestRequestTypeDef = { # (1)
"Id": ...,
"IndexId": ...,
}
parent.delete_thesaurus(**kwargs)
describe_access_control_configuration#
Gets information about an access control configuration that you created for your documents in an index.
Type annotations and code completion for boto3.client("kendra").describe_access_control_configuration
method.
boto3 documentation
# describe_access_control_configuration method definition
def describe_access_control_configuration(
self,
*,
IndexId: str,
Id: str,
) -> DescribeAccessControlConfigurationResponseTypeDef: # (1)
...
# describe_access_control_configuration method usage example with argument unpacking
kwargs: DescribeAccessControlConfigurationRequestRequestTypeDef = { # (1)
"IndexId": ...,
"Id": ...,
}
parent.describe_access_control_configuration(**kwargs)
describe_data_source#
Gets information about an Amazon Kendra data source connector.
Type annotations and code completion for boto3.client("kendra").describe_data_source
method.
boto3 documentation
# describe_data_source method definition
def describe_data_source(
self,
*,
Id: str,
IndexId: str,
) -> DescribeDataSourceResponseTypeDef: # (1)
...
# describe_data_source method usage example with argument unpacking
kwargs: DescribeDataSourceRequestRequestTypeDef = { # (1)
"Id": ...,
"IndexId": ...,
}
parent.describe_data_source(**kwargs)
describe_experience#
Gets information about your Amazon Kendra experience such as a search application.
Type annotations and code completion for boto3.client("kendra").describe_experience
method.
boto3 documentation
# describe_experience method definition
def describe_experience(
self,
*,
Id: str,
IndexId: str,
) -> DescribeExperienceResponseTypeDef: # (1)
...
# describe_experience method usage example with argument unpacking
kwargs: DescribeExperienceRequestRequestTypeDef = { # (1)
"Id": ...,
"IndexId": ...,
}
parent.describe_experience(**kwargs)
describe_faq#
Gets information about an FAQ list.
Type annotations and code completion for boto3.client("kendra").describe_faq
method.
boto3 documentation
# describe_faq method definition
def describe_faq(
self,
*,
Id: str,
IndexId: str,
) -> DescribeFaqResponseTypeDef: # (1)
...
# describe_faq method usage example with argument unpacking
kwargs: DescribeFaqRequestRequestTypeDef = { # (1)
"Id": ...,
"IndexId": ...,
}
parent.describe_faq(**kwargs)
describe_featured_results_set#
Gets information about a set of featured results.
Type annotations and code completion for boto3.client("kendra").describe_featured_results_set
method.
boto3 documentation
# describe_featured_results_set method definition
def describe_featured_results_set(
self,
*,
IndexId: str,
FeaturedResultsSetId: str,
) -> DescribeFeaturedResultsSetResponseTypeDef: # (1)
...
# describe_featured_results_set method usage example with argument unpacking
kwargs: DescribeFeaturedResultsSetRequestRequestTypeDef = { # (1)
"IndexId": ...,
"FeaturedResultsSetId": ...,
}
parent.describe_featured_results_set(**kwargs)
describe_index#
Gets information about an Amazon Kendra index.
Type annotations and code completion for boto3.client("kendra").describe_index
method.
boto3 documentation
# describe_index method definition
def describe_index(
self,
*,
Id: str,
) -> DescribeIndexResponseTypeDef: # (1)
...
# describe_index method usage example with argument unpacking
kwargs: DescribeIndexRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.describe_index(**kwargs)
describe_principal_mapping#
Describes the processing of PUT
and DELETE
actions for mapping users to
their groups.
Type annotations and code completion for boto3.client("kendra").describe_principal_mapping
method.
boto3 documentation
# describe_principal_mapping method definition
def describe_principal_mapping(
self,
*,
IndexId: str,
GroupId: str,
DataSourceId: str = ...,
) -> DescribePrincipalMappingResponseTypeDef: # (1)
...
# describe_principal_mapping method usage example with argument unpacking
kwargs: DescribePrincipalMappingRequestRequestTypeDef = { # (1)
"IndexId": ...,
"GroupId": ...,
}
parent.describe_principal_mapping(**kwargs)
describe_query_suggestions_block_list#
Gets information about a block list used for query suggestions for an index.
Type annotations and code completion for boto3.client("kendra").describe_query_suggestions_block_list
method.
boto3 documentation
# describe_query_suggestions_block_list method definition
def describe_query_suggestions_block_list(
self,
*,
IndexId: str,
Id: str,
) -> DescribeQuerySuggestionsBlockListResponseTypeDef: # (1)
...
# describe_query_suggestions_block_list method usage example with argument unpacking
kwargs: DescribeQuerySuggestionsBlockListRequestRequestTypeDef = { # (1)
"IndexId": ...,
"Id": ...,
}
parent.describe_query_suggestions_block_list(**kwargs)
describe_query_suggestions_config#
Gets information on the settings of query suggestions for an index.
Type annotations and code completion for boto3.client("kendra").describe_query_suggestions_config
method.
boto3 documentation
# describe_query_suggestions_config method definition
def describe_query_suggestions_config(
self,
*,
IndexId: str,
) -> DescribeQuerySuggestionsConfigResponseTypeDef: # (1)
...
# describe_query_suggestions_config method usage example with argument unpacking
kwargs: DescribeQuerySuggestionsConfigRequestRequestTypeDef = { # (1)
"IndexId": ...,
}
parent.describe_query_suggestions_config(**kwargs)
describe_thesaurus#
Gets information about an Amazon Kendra thesaurus.
Type annotations and code completion for boto3.client("kendra").describe_thesaurus
method.
boto3 documentation
# describe_thesaurus method definition
def describe_thesaurus(
self,
*,
Id: str,
IndexId: str,
) -> DescribeThesaurusResponseTypeDef: # (1)
...
# describe_thesaurus method usage example with argument unpacking
kwargs: DescribeThesaurusRequestRequestTypeDef = { # (1)
"Id": ...,
"IndexId": ...,
}
parent.describe_thesaurus(**kwargs)
disassociate_entities_from_experience#
Prevents users or groups in your IAM Identity Center identity source from accessing your Amazon Kendra experience.
Type annotations and code completion for boto3.client("kendra").disassociate_entities_from_experience
method.
boto3 documentation
# disassociate_entities_from_experience method definition
def disassociate_entities_from_experience(
self,
*,
Id: str,
IndexId: str,
EntityList: Sequence[EntityConfigurationTypeDef], # (1)
) -> DisassociateEntitiesFromExperienceResponseTypeDef: # (2)
...
# disassociate_entities_from_experience method usage example with argument unpacking
kwargs: DisassociateEntitiesFromExperienceRequestRequestTypeDef = { # (1)
"Id": ...,
"IndexId": ...,
"EntityList": ...,
}
parent.disassociate_entities_from_experience(**kwargs)
disassociate_personas_from_entities#
Removes the specific permissions of users or groups in your IAM Identity Center identity source with access to your Amazon Kendra experience.
Type annotations and code completion for boto3.client("kendra").disassociate_personas_from_entities
method.
boto3 documentation
# disassociate_personas_from_entities method definition
def disassociate_personas_from_entities(
self,
*,
Id: str,
IndexId: str,
EntityIds: Sequence[str],
) -> DisassociatePersonasFromEntitiesResponseTypeDef: # (1)
...
# disassociate_personas_from_entities method usage example with argument unpacking
kwargs: DisassociatePersonasFromEntitiesRequestRequestTypeDef = { # (1)
"Id": ...,
"IndexId": ...,
"EntityIds": ...,
}
parent.disassociate_personas_from_entities(**kwargs)
generate_presigned_url#
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for boto3.client("kendra").generate_presigned_url
method.
boto3 documentation
# generate_presigned_url method definition
def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
get_query_suggestions#
Fetches the queries that are suggested to your users.
Type annotations and code completion for boto3.client("kendra").get_query_suggestions
method.
boto3 documentation
# get_query_suggestions method definition
def get_query_suggestions(
self,
*,
IndexId: str,
QueryText: str,
MaxSuggestionsCount: int = ...,
SuggestionTypes: Sequence[SuggestionTypeType] = ..., # (1)
AttributeSuggestionsConfig: AttributeSuggestionsGetConfigTypeDef = ..., # (2)
) -> GetQuerySuggestionsResponseTypeDef: # (3)
...
- See SuggestionTypeType
- See AttributeSuggestionsGetConfigTypeDef
- See GetQuerySuggestionsResponseTypeDef
# get_query_suggestions method usage example with argument unpacking
kwargs: GetQuerySuggestionsRequestRequestTypeDef = { # (1)
"IndexId": ...,
"QueryText": ...,
}
parent.get_query_suggestions(**kwargs)
get_snapshots#
Retrieves search metrics data.
Type annotations and code completion for boto3.client("kendra").get_snapshots
method.
boto3 documentation
# get_snapshots method definition
def get_snapshots(
self,
*,
IndexId: str,
Interval: IntervalType, # (1)
MetricType: MetricTypeType, # (2)
NextToken: str = ...,
MaxResults: int = ...,
) -> GetSnapshotsResponseTypeDef: # (3)
...
- See IntervalType
- See MetricTypeType
- See GetSnapshotsResponseTypeDef
# get_snapshots method usage example with argument unpacking
kwargs: GetSnapshotsRequestRequestTypeDef = { # (1)
"IndexId": ...,
"Interval": ...,
"MetricType": ...,
}
parent.get_snapshots(**kwargs)
list_access_control_configurations#
Lists one or more access control configurations for an index.
Type annotations and code completion for boto3.client("kendra").list_access_control_configurations
method.
boto3 documentation
# list_access_control_configurations method definition
def list_access_control_configurations(
self,
*,
IndexId: str,
NextToken: str = ...,
MaxResults: int = ...,
) -> ListAccessControlConfigurationsResponseTypeDef: # (1)
...
# list_access_control_configurations method usage example with argument unpacking
kwargs: ListAccessControlConfigurationsRequestRequestTypeDef = { # (1)
"IndexId": ...,
}
parent.list_access_control_configurations(**kwargs)
list_data_source_sync_jobs#
Gets statistics about synchronizing a data source connector.
Type annotations and code completion for boto3.client("kendra").list_data_source_sync_jobs
method.
boto3 documentation
# list_data_source_sync_jobs method definition
def list_data_source_sync_jobs(
self,
*,
Id: str,
IndexId: str,
NextToken: str = ...,
MaxResults: int = ...,
StartTimeFilter: TimeRangeTypeDef = ..., # (1)
StatusFilter: DataSourceSyncJobStatusType = ..., # (2)
) -> ListDataSourceSyncJobsResponseTypeDef: # (3)
...
# list_data_source_sync_jobs method usage example with argument unpacking
kwargs: ListDataSourceSyncJobsRequestRequestTypeDef = { # (1)
"Id": ...,
"IndexId": ...,
}
parent.list_data_source_sync_jobs(**kwargs)
list_data_sources#
Lists the data source connectors that you have created.
Type annotations and code completion for boto3.client("kendra").list_data_sources
method.
boto3 documentation
# list_data_sources method definition
def list_data_sources(
self,
*,
IndexId: str,
NextToken: str = ...,
MaxResults: int = ...,
) -> ListDataSourcesResponseTypeDef: # (1)
...
# list_data_sources method usage example with argument unpacking
kwargs: ListDataSourcesRequestRequestTypeDef = { # (1)
"IndexId": ...,
}
parent.list_data_sources(**kwargs)
list_entity_personas#
Lists specific permissions of users and groups with access to your Amazon Kendra experience.
Type annotations and code completion for boto3.client("kendra").list_entity_personas
method.
boto3 documentation
# list_entity_personas method definition
def list_entity_personas(
self,
*,
Id: str,
IndexId: str,
NextToken: str = ...,
MaxResults: int = ...,
) -> ListEntityPersonasResponseTypeDef: # (1)
...
# list_entity_personas method usage example with argument unpacking
kwargs: ListEntityPersonasRequestRequestTypeDef = { # (1)
"Id": ...,
"IndexId": ...,
}
parent.list_entity_personas(**kwargs)
list_experience_entities#
Lists users or groups in your IAM Identity Center identity source that are granted access to your Amazon Kendra experience.
Type annotations and code completion for boto3.client("kendra").list_experience_entities
method.
boto3 documentation
# list_experience_entities method definition
def list_experience_entities(
self,
*,
Id: str,
IndexId: str,
NextToken: str = ...,
) -> ListExperienceEntitiesResponseTypeDef: # (1)
...
# list_experience_entities method usage example with argument unpacking
kwargs: ListExperienceEntitiesRequestRequestTypeDef = { # (1)
"Id": ...,
"IndexId": ...,
}
parent.list_experience_entities(**kwargs)
list_experiences#
Lists one or more Amazon Kendra experiences.
Type annotations and code completion for boto3.client("kendra").list_experiences
method.
boto3 documentation
# list_experiences method definition
def list_experiences(
self,
*,
IndexId: str,
NextToken: str = ...,
MaxResults: int = ...,
) -> ListExperiencesResponseTypeDef: # (1)
...
# list_experiences method usage example with argument unpacking
kwargs: ListExperiencesRequestRequestTypeDef = { # (1)
"IndexId": ...,
}
parent.list_experiences(**kwargs)
list_faqs#
Gets a list of FAQ lists associated with an index.
Type annotations and code completion for boto3.client("kendra").list_faqs
method.
boto3 documentation
# list_faqs method definition
def list_faqs(
self,
*,
IndexId: str,
NextToken: str = ...,
MaxResults: int = ...,
) -> ListFaqsResponseTypeDef: # (1)
...
# list_faqs method usage example with argument unpacking
kwargs: ListFaqsRequestRequestTypeDef = { # (1)
"IndexId": ...,
}
parent.list_faqs(**kwargs)
list_featured_results_sets#
Lists all your sets of featured results for a given index.
Type annotations and code completion for boto3.client("kendra").list_featured_results_sets
method.
boto3 documentation
# list_featured_results_sets method definition
def list_featured_results_sets(
self,
*,
IndexId: str,
NextToken: str = ...,
MaxResults: int = ...,
) -> ListFeaturedResultsSetsResponseTypeDef: # (1)
...
# list_featured_results_sets method usage example with argument unpacking
kwargs: ListFeaturedResultsSetsRequestRequestTypeDef = { # (1)
"IndexId": ...,
}
parent.list_featured_results_sets(**kwargs)
list_groups_older_than_ordering_id#
Provides a list of groups that are mapped to users before a given ordering or timestamp identifier.
Type annotations and code completion for boto3.client("kendra").list_groups_older_than_ordering_id
method.
boto3 documentation
# list_groups_older_than_ordering_id method definition
def list_groups_older_than_ordering_id(
self,
*,
IndexId: str,
OrderingId: int,
DataSourceId: str = ...,
NextToken: str = ...,
MaxResults: int = ...,
) -> ListGroupsOlderThanOrderingIdResponseTypeDef: # (1)
...
# list_groups_older_than_ordering_id method usage example with argument unpacking
kwargs: ListGroupsOlderThanOrderingIdRequestRequestTypeDef = { # (1)
"IndexId": ...,
"OrderingId": ...,
}
parent.list_groups_older_than_ordering_id(**kwargs)
list_indices#
Lists the Amazon Kendra indexes that you created.
Type annotations and code completion for boto3.client("kendra").list_indices
method.
boto3 documentation
# list_indices method definition
def list_indices(
self,
*,
NextToken: str = ...,
MaxResults: int = ...,
) -> ListIndicesResponseTypeDef: # (1)
...
# list_indices method usage example with argument unpacking
kwargs: ListIndicesRequestRequestTypeDef = { # (1)
"NextToken": ...,
}
parent.list_indices(**kwargs)
list_query_suggestions_block_lists#
Lists the block lists used for query suggestions for an index.
Type annotations and code completion for boto3.client("kendra").list_query_suggestions_block_lists
method.
boto3 documentation
# list_query_suggestions_block_lists method definition
def list_query_suggestions_block_lists(
self,
*,
IndexId: str,
NextToken: str = ...,
MaxResults: int = ...,
) -> ListQuerySuggestionsBlockListsResponseTypeDef: # (1)
...
# list_query_suggestions_block_lists method usage example with argument unpacking
kwargs: ListQuerySuggestionsBlockListsRequestRequestTypeDef = { # (1)
"IndexId": ...,
}
parent.list_query_suggestions_block_lists(**kwargs)
list_tags_for_resource#
Gets a list of tags associated with a specified resource.
Type annotations and code completion for boto3.client("kendra").list_tags_for_resource
method.
boto3 documentation
# list_tags_for_resource method definition
def list_tags_for_resource(
self,
*,
ResourceARN: str,
) -> ListTagsForResourceResponseTypeDef: # (1)
...
# list_tags_for_resource method usage example with argument unpacking
kwargs: ListTagsForResourceRequestRequestTypeDef = { # (1)
"ResourceARN": ...,
}
parent.list_tags_for_resource(**kwargs)
list_thesauri#
Lists the thesauri for an index.
Type annotations and code completion for boto3.client("kendra").list_thesauri
method.
boto3 documentation
# list_thesauri method definition
def list_thesauri(
self,
*,
IndexId: str,
NextToken: str = ...,
MaxResults: int = ...,
) -> ListThesauriResponseTypeDef: # (1)
...
# list_thesauri method usage example with argument unpacking
kwargs: ListThesauriRequestRequestTypeDef = { # (1)
"IndexId": ...,
}
parent.list_thesauri(**kwargs)
put_principal_mapping#
Maps users to their groups so that you only need to provide the user ID when you issue the query.
Type annotations and code completion for boto3.client("kendra").put_principal_mapping
method.
boto3 documentation
# put_principal_mapping method definition
def put_principal_mapping(
self,
*,
IndexId: str,
GroupId: str,
GroupMembers: GroupMembersTypeDef, # (1)
DataSourceId: str = ...,
OrderingId: int = ...,
RoleArn: str = ...,
) -> EmptyResponseMetadataTypeDef: # (2)
...
# put_principal_mapping method usage example with argument unpacking
kwargs: PutPrincipalMappingRequestRequestTypeDef = { # (1)
"IndexId": ...,
"GroupId": ...,
"GroupMembers": ...,
}
parent.put_principal_mapping(**kwargs)
query#
Searches an index given an input query.
Type annotations and code completion for boto3.client("kendra").query
method.
boto3 documentation
# query method definition
def query(
self,
*,
IndexId: str,
QueryText: str = ...,
AttributeFilter: AttributeFilterTypeDef = ..., # (1)
Facets: Sequence[FacetTypeDef] = ..., # (2)
RequestedDocumentAttributes: Sequence[str] = ...,
QueryResultTypeFilter: QueryResultTypeType = ..., # (3)
DocumentRelevanceOverrideConfigurations: Sequence[DocumentRelevanceConfigurationTypeDef] = ..., # (4)
PageNumber: int = ...,
PageSize: int = ...,
SortingConfiguration: SortingConfigurationTypeDef = ..., # (5)
SortingConfigurations: Sequence[SortingConfigurationTypeDef] = ..., # (6)
UserContext: UserContextTypeDef = ..., # (7)
VisitorId: str = ...,
SpellCorrectionConfiguration: SpellCorrectionConfigurationTypeDef = ..., # (8)
CollapseConfiguration: CollapseConfigurationTypeDef = ..., # (9)
) -> QueryResultTypeDef: # (10)
...
- See AttributeFilterTypeDef
- See FacetTypeDef
- See QueryResultTypeType
- See DocumentRelevanceConfigurationTypeDef
- See SortingConfigurationTypeDef
- See SortingConfigurationTypeDef
- See UserContextTypeDef
- See SpellCorrectionConfigurationTypeDef
- See CollapseConfigurationTypeDef
- See QueryResultTypeDef
# query method usage example with argument unpacking
kwargs: QueryRequestRequestTypeDef = { # (1)
"IndexId": ...,
}
parent.query(**kwargs)
retrieve#
Retrieves relevant passages or text excerpts given an input query.
Type annotations and code completion for boto3.client("kendra").retrieve
method.
boto3 documentation
# retrieve method definition
def retrieve(
self,
*,
IndexId: str,
QueryText: str,
AttributeFilter: AttributeFilterTypeDef = ..., # (1)
RequestedDocumentAttributes: Sequence[str] = ...,
DocumentRelevanceOverrideConfigurations: Sequence[DocumentRelevanceConfigurationTypeDef] = ..., # (2)
PageNumber: int = ...,
PageSize: int = ...,
UserContext: UserContextTypeDef = ..., # (3)
) -> RetrieveResultTypeDef: # (4)
...
- See AttributeFilterTypeDef
- See DocumentRelevanceConfigurationTypeDef
- See UserContextTypeDef
- See RetrieveResultTypeDef
# retrieve method usage example with argument unpacking
kwargs: RetrieveRequestRequestTypeDef = { # (1)
"IndexId": ...,
"QueryText": ...,
}
parent.retrieve(**kwargs)
start_data_source_sync_job#
Starts a synchronization job for a data source connector.
Type annotations and code completion for boto3.client("kendra").start_data_source_sync_job
method.
boto3 documentation
# start_data_source_sync_job method definition
def start_data_source_sync_job(
self,
*,
Id: str,
IndexId: str,
) -> StartDataSourceSyncJobResponseTypeDef: # (1)
...
# start_data_source_sync_job method usage example with argument unpacking
kwargs: StartDataSourceSyncJobRequestRequestTypeDef = { # (1)
"Id": ...,
"IndexId": ...,
}
parent.start_data_source_sync_job(**kwargs)
stop_data_source_sync_job#
Stops a synchronization job that is currently running.
Type annotations and code completion for boto3.client("kendra").stop_data_source_sync_job
method.
boto3 documentation
# stop_data_source_sync_job method definition
def stop_data_source_sync_job(
self,
*,
Id: str,
IndexId: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# stop_data_source_sync_job method usage example with argument unpacking
kwargs: StopDataSourceSyncJobRequestRequestTypeDef = { # (1)
"Id": ...,
"IndexId": ...,
}
parent.stop_data_source_sync_job(**kwargs)
submit_feedback#
Enables you to provide feedback to Amazon Kendra to improve the performance of your index.
Type annotations and code completion for boto3.client("kendra").submit_feedback
method.
boto3 documentation
# submit_feedback method definition
def submit_feedback(
self,
*,
IndexId: str,
QueryId: str,
ClickFeedbackItems: Sequence[ClickFeedbackTypeDef] = ..., # (1)
RelevanceFeedbackItems: Sequence[RelevanceFeedbackTypeDef] = ..., # (2)
) -> EmptyResponseMetadataTypeDef: # (3)
...
# submit_feedback method usage example with argument unpacking
kwargs: SubmitFeedbackRequestRequestTypeDef = { # (1)
"IndexId": ...,
"QueryId": ...,
}
parent.submit_feedback(**kwargs)
tag_resource#
Adds the specified tag to the specified index, FAQ, or data source resource.
Type annotations and code completion for boto3.client("kendra").tag_resource
method.
boto3 documentation
# tag_resource method definition
def tag_resource(
self,
*,
ResourceARN: str,
Tags: Sequence[TagTypeDef], # (1)
) -> Dict[str, Any]:
...
- See TagTypeDef
# tag_resource method usage example with argument unpacking
kwargs: TagResourceRequestRequestTypeDef = { # (1)
"ResourceARN": ...,
"Tags": ...,
}
parent.tag_resource(**kwargs)
untag_resource#
Removes a tag from an index, FAQ, or a data source.
Type annotations and code completion for boto3.client("kendra").untag_resource
method.
boto3 documentation
# untag_resource method definition
def untag_resource(
self,
*,
ResourceARN: str,
TagKeys: Sequence[str],
) -> Dict[str, Any]:
...
# untag_resource method usage example with argument unpacking
kwargs: UntagResourceRequestRequestTypeDef = { # (1)
"ResourceARN": ...,
"TagKeys": ...,
}
parent.untag_resource(**kwargs)
update_access_control_configuration#
Updates an access control configuration for your documents in an index.
Type annotations and code completion for boto3.client("kendra").update_access_control_configuration
method.
boto3 documentation
# update_access_control_configuration method definition
def update_access_control_configuration(
self,
*,
IndexId: str,
Id: str,
Name: str = ...,
Description: str = ...,
AccessControlList: Sequence[PrincipalTypeDef] = ..., # (1)
HierarchicalAccessControlList: Sequence[HierarchicalPrincipalTypeDef] = ..., # (2)
) -> Dict[str, Any]:
...
# update_access_control_configuration method usage example with argument unpacking
kwargs: UpdateAccessControlConfigurationRequestRequestTypeDef = { # (1)
"IndexId": ...,
"Id": ...,
}
parent.update_access_control_configuration(**kwargs)
update_data_source#
Updates an Amazon Kendra data source connector.
Type annotations and code completion for boto3.client("kendra").update_data_source
method.
boto3 documentation
# update_data_source method definition
def update_data_source(
self,
*,
Id: str,
IndexId: str,
Name: str = ...,
Configuration: DataSourceConfigurationTypeDef = ..., # (1)
VpcConfiguration: DataSourceVpcConfigurationTypeDef = ..., # (2)
Description: str = ...,
Schedule: str = ...,
RoleArn: str = ...,
LanguageCode: str = ...,
CustomDocumentEnrichmentConfiguration: CustomDocumentEnrichmentConfigurationTypeDef = ..., # (3)
) -> EmptyResponseMetadataTypeDef: # (4)
...
- See DataSourceConfigurationTypeDef
- See DataSourceVpcConfigurationTypeDef
- See CustomDocumentEnrichmentConfigurationTypeDef
- See EmptyResponseMetadataTypeDef
# update_data_source method usage example with argument unpacking
kwargs: UpdateDataSourceRequestRequestTypeDef = { # (1)
"Id": ...,
"IndexId": ...,
}
parent.update_data_source(**kwargs)
update_experience#
Updates your Amazon Kendra experience such as a search application.
Type annotations and code completion for boto3.client("kendra").update_experience
method.
boto3 documentation
# update_experience method definition
def update_experience(
self,
*,
Id: str,
IndexId: str,
Name: str = ...,
RoleArn: str = ...,
Configuration: ExperienceConfigurationTypeDef = ..., # (1)
Description: str = ...,
) -> EmptyResponseMetadataTypeDef: # (2)
...
# update_experience method usage example with argument unpacking
kwargs: UpdateExperienceRequestRequestTypeDef = { # (1)
"Id": ...,
"IndexId": ...,
}
parent.update_experience(**kwargs)
update_featured_results_set#
Updates a set of featured results.
Type annotations and code completion for boto3.client("kendra").update_featured_results_set
method.
boto3 documentation
# update_featured_results_set method definition
def update_featured_results_set(
self,
*,
IndexId: str,
FeaturedResultsSetId: str,
FeaturedResultsSetName: str = ...,
Description: str = ...,
Status: FeaturedResultsSetStatusType = ..., # (1)
QueryTexts: Sequence[str] = ...,
FeaturedDocuments: Sequence[FeaturedDocumentTypeDef] = ..., # (2)
) -> UpdateFeaturedResultsSetResponseTypeDef: # (3)
...
- See FeaturedResultsSetStatusType
- See FeaturedDocumentTypeDef
- See UpdateFeaturedResultsSetResponseTypeDef
# update_featured_results_set method usage example with argument unpacking
kwargs: UpdateFeaturedResultsSetRequestRequestTypeDef = { # (1)
"IndexId": ...,
"FeaturedResultsSetId": ...,
}
parent.update_featured_results_set(**kwargs)
update_index#
Updates an Amazon Kendra index.
Type annotations and code completion for boto3.client("kendra").update_index
method.
boto3 documentation
# update_index method definition
def update_index(
self,
*,
Id: str,
Name: str = ...,
RoleArn: str = ...,
Description: str = ...,
DocumentMetadataConfigurationUpdates: Sequence[DocumentMetadataConfigurationUnionTypeDef] = ..., # (1)
CapacityUnits: CapacityUnitsConfigurationTypeDef = ..., # (2)
UserTokenConfigurations: Sequence[UserTokenConfigurationTypeDef] = ..., # (3)
UserContextPolicy: UserContextPolicyType = ..., # (4)
UserGroupResolutionConfiguration: UserGroupResolutionConfigurationTypeDef = ..., # (5)
) -> EmptyResponseMetadataTypeDef: # (6)
...
- See DocumentMetadataConfigurationTypeDef DocumentMetadataConfigurationOutputTypeDef
- See CapacityUnitsConfigurationTypeDef
- See UserTokenConfigurationTypeDef
- See UserContextPolicyType
- See UserGroupResolutionConfigurationTypeDef
- See EmptyResponseMetadataTypeDef
# update_index method usage example with argument unpacking
kwargs: UpdateIndexRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.update_index(**kwargs)
update_query_suggestions_block_list#
Updates a block list used for query suggestions for an index.
Type annotations and code completion for boto3.client("kendra").update_query_suggestions_block_list
method.
boto3 documentation
# update_query_suggestions_block_list method definition
def update_query_suggestions_block_list(
self,
*,
IndexId: str,
Id: str,
Name: str = ...,
Description: str = ...,
SourceS3Path: S3PathTypeDef = ..., # (1)
RoleArn: str = ...,
) -> EmptyResponseMetadataTypeDef: # (2)
...
# update_query_suggestions_block_list method usage example with argument unpacking
kwargs: UpdateQuerySuggestionsBlockListRequestRequestTypeDef = { # (1)
"IndexId": ...,
"Id": ...,
}
parent.update_query_suggestions_block_list(**kwargs)
update_query_suggestions_config#
Updates the settings of query suggestions for an index.
Type annotations and code completion for boto3.client("kendra").update_query_suggestions_config
method.
boto3 documentation
# update_query_suggestions_config method definition
def update_query_suggestions_config(
self,
*,
IndexId: str,
Mode: ModeType = ..., # (1)
QueryLogLookBackWindowInDays: int = ...,
IncludeQueriesWithoutUserInformation: bool = ...,
MinimumNumberOfQueryingUsers: int = ...,
MinimumQueryCount: int = ...,
AttributeSuggestionsConfig: AttributeSuggestionsUpdateConfigTypeDef = ..., # (2)
) -> EmptyResponseMetadataTypeDef: # (3)
...
# update_query_suggestions_config method usage example with argument unpacking
kwargs: UpdateQuerySuggestionsConfigRequestRequestTypeDef = { # (1)
"IndexId": ...,
}
parent.update_query_suggestions_config(**kwargs)
update_thesaurus#
Updates a thesaurus for an index.
Type annotations and code completion for boto3.client("kendra").update_thesaurus
method.
boto3 documentation
# update_thesaurus method definition
def update_thesaurus(
self,
*,
Id: str,
IndexId: str,
Name: str = ...,
Description: str = ...,
RoleArn: str = ...,
SourceS3Path: S3PathTypeDef = ..., # (1)
) -> EmptyResponseMetadataTypeDef: # (2)
...
# update_thesaurus method usage example with argument unpacking
kwargs: UpdateThesaurusRequestRequestTypeDef = { # (1)
"Id": ...,
"IndexId": ...,
}
parent.update_thesaurus(**kwargs)