OpenSearchService / Client / update_direct_query_data_source
update_direct_query_data_source#
- OpenSearchService.Client.update_direct_query_data_source(**kwargs)#
Updates the configuration or properties of an existing direct query data source in Amazon OpenSearch Service.
See also: AWS API Documentation
Request Syntax
response = client.update_direct_query_data_source( DataSourceName='string', DataSourceType={ 'CloudWatchLog': { 'RoleArn': 'string' }, 'SecurityLake': { 'RoleArn': 'string' } }, Description='string', OpenSearchArns=[ 'string', ] )
- Parameters:
DataSourceName (string) –
[REQUIRED]
A unique, user-defined label to identify the data source within your OpenSearch Service environment.
DataSourceType (dict) –
[REQUIRED]
The supported Amazon Web Services service that you want to use as the source for direct queries in OpenSearch Service.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
CloudWatchLog
,SecurityLake
.CloudWatchLog (dict) –
Specifies CloudWatch Logs as a type of data source for direct queries.
RoleArn (string) – [REQUIRED]
The unique identifier of the IAM role that grants OpenSearch Service permission to access the specified data source.
SecurityLake (dict) –
Specifies Security Lake as a type of data source for direct queries.
RoleArn (string) – [REQUIRED]
The unique identifier of the IAM role that grants OpenSearch Service permission to access the specified data source.
Description (string) – An optional text field for providing additional context and details about the data source.
OpenSearchArns (list) –
[REQUIRED]
A list of Amazon Resource Names (ARNs) for the OpenSearch collections that are associated with the direct query data source.
(string) –
The Amazon Resource Name (ARN) of the domain. See Identifiers for IAM Entities in Using Amazon Web Services Identity and Access Management for more information.
- Return type:
dict
- Returns:
Response Syntax
{ 'DataSourceArn': 'string' }
Response Structure
(dict) –
DataSourceArn (string) –
The unique, system-generated identifier that represents the data source.
Exceptions
OpenSearchService.Client.exceptions.BaseException
OpenSearchService.Client.exceptions.InternalException
OpenSearchService.Client.exceptions.ResourceNotFoundException
OpenSearchService.Client.exceptions.ValidationException
OpenSearchService.Client.exceptions.DisabledOperationException