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
5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 | |