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
5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 | |