update_direct_query_data_source
async
¶
update_direct_query_data_source(
data_source_name: DirectQueryDataSourceName,
data_source_type: DirectQueryDataSourceType,
*,
config_overrides: Optional[AsyncOpenSearchClientConfig] = None,
description: Optional[DirectQueryDataSourceDescription] = None,
open_search_arns: Optional[DirectQueryOpenSearchARNList] = None,
data_source_access_policy: Optional[PolicyDocument] = None,
) -> UpdateDirectQueryDataSourceResponse
Updates the configuration or properties of an existing direct query data source in Amazon OpenSearch Service.
Parameters:
-
data_source_name(DirectQueryDataSourceName) –A unique, user-defined label to identify the data source within your OpenSearch Service environment.
-
data_source_type(DirectQueryDataSourceType) –The supported Amazon Web Services service that you want to use as the source for direct queries in OpenSearch Service.
-
description(Optional[DirectQueryDataSourceDescription], default:None) –An optional text field for providing additional context and details about the data source.
-
open_search_arns(Optional[DirectQueryOpenSearchARNList], default:None) –An optional list of Amazon Resource Names (ARNs) for the OpenSearch collections that are associated with the direct query data source. This field is required for CloudWatchLogs and SecurityLake datasource types.
-
data_source_access_policy(Optional[PolicyDocument], default:None) –An optional IAM access policy document that defines the updated permissions for accessing the direct query data source. The policy document must be in valid JSON format and follow IAM policy syntax. If not specified, the existing access policy if present remains unchanged.
Raises:
-
BaseException–An error occurred while processing the request.
-
DisabledOperationException–An error occured because the client wanted to access an unsupported operation.
-
InternalException–Request processing failed because of an unknown error, exception, or internal failure.
-
LimitExceededException–An exception for trying to create more than the allowed number of resources or sub-resources.
-
ResourceNotFoundException–An exception for accessing or deleting a resource that doesn't exist.
-
ValidationException–An exception for accessing or deleting a resource that doesn't exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_opensearch/_services/async_open_search.py
6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 | |