UpdateDirectQueryDataSourceRequest

AnalyticsAmazon Web ServicesElasticsearchSearch

Properties

Name Type Description
DataSourceName string A unique, user-defined label to identify the data source within your OpenSearch Service environment.
DataSourceType object
Description string An optional text field for providing additional context and details about the data source.
OpenSearchArns array 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 dataso
DataSourceAccessPolicy string 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. I
View JSON Schema on GitHub

JSON Schema

amazon-opensearch-update-direct-query-data-source-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-opensearch/json-schema/amazon-opensearch-update-direct-query-data-source-request-schema.json",
  "title": "UpdateDirectQueryDataSourceRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-opensearch-opensearch-api-openapi.yml#/components/schemas/UpdateDirectQueryDataSourceRequest",
  "type": "object",
  "properties": {
    "DataSourceName": {
      "type": "string",
      "description": "A unique, user-defined label to identify the data source within your OpenSearch Service environment."
    },
    "DataSourceType": {
      "$ref": "#/$defs/DirectQueryDataSourceType"
    },
    "Description": {
      "type": "string",
      "description": "An optional text field for providing additional context and details about the data source."
    },
    "OpenSearchArns": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "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": {
      "type": "string",
      "description": "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."
    }
  },
  "required": [
    "DataSourceName",
    "DataSourceType"
  ],
  "$defs": {
    "CloudWatchDirectQueryDataSource": {
      "type": "object",
      "properties": {
        "RoleArn": {
          "type": "string",
          "description": "The unique identifier of the IAM role that grants OpenSearch Service permission to access the specified data source."
        }
      },
      "required": [
        "RoleArn"
      ]
    },
    "DirectQueryDataSourceType": {
      "type": "object",
      "properties": {
        "CloudWatchLog": {
          "$ref": "#/$defs/CloudWatchDirectQueryDataSource"
        },
        "SecurityLake": {
          "$ref": "#/$defs/SecurityLakeDirectQueryDataSource"
        },
        "Prometheus": {
          "$ref": "#/$defs/PrometheusDirectQueryDataSource"
        }
      },
      "description": "Exactly one member is set."
    },
    "PrometheusDirectQueryDataSource": {
      "type": "object",
      "properties": {
        "RoleArn": {
          "type": "string",
          "description": "The unique identifier of the IAM role that grants OpenSearch Service permission to access the specified data source."
        },
        "WorkspaceArn": {
          "type": "string",
          "description": "The unique identifier of the Amazon Managed Prometheus Workspace that is associated with the specified data source."
        }
      },
      "required": [
        "RoleArn",
        "WorkspaceArn"
      ]
    },
    "SecurityLakeDirectQueryDataSource": {
      "type": "object",
      "properties": {
        "RoleArn": {
          "type": "string",
          "description": "The unique identifier of the IAM role that grants OpenSearch Service permission to access the specified data source."
        }
      },
      "required": [
        "RoleArn"
      ]
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/amazon-opensearch-update-direct-query-data-source-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.