Skip to content

Update Direct Query Data Source

opensearchservice_update_direct_query_data_source R Documentation

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.

Description

An optional text field for providing additional context and details about the data source.

OpenSearchArns

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.

DataSourceAccessPolicy

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.

Value

A list with the following syntax:

list(
  DataSourceArn = "string"
)

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"
)