update_data_source
async
¶
update_data_source(
id: DataSourceId,
index_id: IndexId,
*,
config_overrides: Optional[AsynckendraClientConfig] = None,
name: Optional[DataSourceName] = None,
configuration: Optional[DataSourceConfiguration] = None,
vpc_configuration: Optional[DataSourceVpcConfiguration] = None,
description: Optional[Description] = None,
schedule: Optional[ScanSchedule] = None,
role_arn: Optional[RoleArn] = None,
language_code: Optional[LanguageCode] = None,
custom_document_enrichment_configuration: Optional[
CustomDocumentEnrichmentConfiguration
] = None,
) -> None
Updates an Amazon Kendra data source connector.
Parameters:
-
id(DataSourceId) –The identifier of the data source connector you want to update.
-
name(Optional[DataSourceName], default:None) –A new name for the data source connector.
-
index_id(IndexId) –The identifier of the index used with the data source connector.
-
configuration(Optional[DataSourceConfiguration], default:None) –Configuration information you want to update for the data source connector.
-
vpc_configuration(Optional[DataSourceVpcConfiguration], default:None) –Configuration information for an Amazon Virtual Private Cloud to connect to your data source. For more information, see Configuring a VPC.
-
description(Optional[Description], default:None) –A new description for the data source connector.
-
schedule(Optional[ScanSchedule], default:None) –The sync schedule you want to update for the data source connector.
-
role_arn(Optional[RoleArn], default:None) –The Amazon Resource Name (ARN) of an IAM role with permission to access the data source and required resources. For more information, see IAM roles for Amazon Kendra.
-
language_code(Optional[LanguageCode], default:None) –The code for a language you want to update for the data source connector. This allows you to support a language for all documents when updating the data source. English is supported by default. For more information on supported languages, including their codes, see Adding documents in languages other than English.
-
custom_document_enrichment_configuration(Optional[CustomDocumentEnrichmentConfiguration], default:None) –Configuration information you want to update for altering document metadata and content during the document ingestion process.
For more information on how to create, modify and delete document metadata, or make other content alterations when you ingest documents into Amazon Kendra, see Customizing document metadata during the ingestion process.
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
4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 | |