update_data_source
async
¶
update_data_source(
application_id: ApplicationId,
index_id: IndexId,
data_source_id: DataSourceId,
*,
config_overrides: Optional[AsyncQBusinessClientConfig] = None,
display_name: Optional[DataSourceName] = None,
configuration: Optional[DataSourceConfiguration] = None,
vpc_configuration: Optional[DataSourceVpcConfiguration] = None,
description: Optional[Description] = None,
sync_schedule: Optional[SyncSchedule] = None,
role_arn: Optional[RoleArn] = None,
document_enrichment_configuration: Optional[DocumentEnrichmentConfiguration] = None,
media_extraction_configuration: Optional[MediaExtractionConfiguration] = None,
) -> UpdateDataSourceResponse
Updates an existing Amazon Q Business data source connector.
Parameters:
-
application_id(ApplicationId) –The identifier of the Amazon Q Business application the data source is attached to.
-
index_id(IndexId) –The identifier of the index attached to the data source connector.
-
data_source_id(DataSourceId) –The identifier of the data source connector.
-
display_name(Optional[DataSourceName], default:None) –A name of the data source connector.
-
description(Optional[Description], default:None) –The description of the data source connector.
-
sync_schedule(Optional[SyncSchedule], default:None) –The chosen update frequency for your data source.
-
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.
-
media_extraction_configuration(Optional[MediaExtractionConfiguration], default:None) –The configuration for extracting information from media in documents for your data source.
Raises:
-
AccessDeniedException–You don't have access to perform this action. Make sure you have the required permission policies and user accounts and try again.
-
ConflictException–You are trying to perform an action that conflicts with the current status of your resource. Fix any inconsistencies with your resources and try again.
-
InternalServerException–An issue occurred with the internal server used for your Amazon Q Business service. Wait some minutes and try again, or contact Support for help.
-
ResourceNotFoundException–The application or plugin resource you want to use doesn’t exist. Make sure you have provided the correct resource and try again.
-
ThrottlingException–The request was denied due to throttling. Reduce the number of requests and try again.
-
ValidationException–The input doesn't meet the constraints set by the Amazon Q Business service. 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_qbusiness/_services/async_q_business.py
5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 | |