update_direct_query_data_source
¶
update_direct_query_data_source(
data_source_name: DirectQueryDataSourceName,
data_source_type: DirectQueryDataSourceType,
*,
config_overrides: Optional[OpenSearchClientConfig] = 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/open_search.py
6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 | |