update_data_source
¶
update_data_source(
application_id: ApplicationId,
index_id: IndexId,
data_source_id: DataSourceId,
*,
config_overrides: Optional[QBusinessClientConfig] = 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/q_business.py
5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 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 | |