Updates the configuration or properties of an existing direct query data source in Amazon OpenSearch Service¶
Description¶
Updates the configuration or properties of an existing direct query data source in Amazon OpenSearch Service.
Usage¶
opensearchservice_update_direct_query_data_source(DataSourceName,
DataSourceType, Description, OpenSearchArns, DataSourceAccessPolicy)
Arguments¶
-
DataSourceName[required] A unique, user-defined label to identify the data source within your OpenSearch Service environment.
-
DataSourceType[required] The supported Amazon Web Services service that you want to use as the source for direct queries in OpenSearch Service.
-
DescriptionAn optional text field for providing additional context and details about the data source.
-
OpenSearchArnsAn 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.
-
DataSourceAccessPolicyAn 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.
Value¶
A list with the following syntax:
Request syntax¶
svc$update_direct_query_data_source(
DataSourceName = "string",
DataSourceType = list(
CloudWatchLog = list(
RoleArn = "string"
),
SecurityLake = list(
RoleArn = "string"
),
Prometheus = list(
RoleArn = "string",
WorkspaceArn = "string"
)
),
Description = "string",
OpenSearchArns = list(
"string"
),
DataSourceAccessPolicy = "string"
)