update_data_source
¶
update_data_source(
id: DataSourceId,
index_id: IndexId,
*,
config_overrides: Optional[kendraClientConfig] = 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/kendra.py
4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 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 | |