{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloudwatch/json-schema/amazon-cloudwatch-describe-query-definitions-response-schema.json",
  "title": "DescribeQueryDefinitionsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-cloudwatch-query-definition-api-openapi.yml#/components/schemas/DescribeQueryDefinitionsResponse",
  "type": "object",
  "properties": {
    "queryDefinitions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/QueryDefinition"
      },
      "description": "The list of query definitions that match your request."
    },
    "nextToken": {
      "type": "string"
    }
  },
  "$defs": {
    "QueryDefinition": {
      "type": "object",
      "properties": {
        "queryLanguage": {
          "type": "string",
          "enum": [
            "CWLI",
            "SQL",
            "PPL"
          ],
          "description": "The query language used for this query. For more information about the query languages that CloudWatch Logs supports, see Supported query languages."
        },
        "queryDefinitionId": {
          "type": "string",
          "description": "The unique ID of the query definition."
        },
        "name": {
          "type": "string",
          "description": "The name of the query definition."
        },
        "queryString": {
          "type": "string",
          "description": "The query string to use for this definition. For more information, see CloudWatch Logs Insights Query Syntax."
        },
        "lastModified": {
          "type": "integer",
          "description": "The date that the query definition was most recently modified."
        },
        "logGroupNames": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "If this query definition contains a list of log groups that it is limited to, that list appears here."
        },
        "parameters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/QueryParameter"
          },
          "description": "If this query definition contains a list of query parameters that define placeholder variables for the query string, that list appears here."
        }
      }
    },
    "QueryParameter": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the query parameter. A query parameter name must start with a letter or underscore, and contain only letters, digits, and underscores."
        },
        "defaultValue": {
          "type": "string",
          "description": "The default value to use for this query parameter if no value is supplied at execution time."
        },
        "description": {
          "type": "string",
          "description": "A description of the query parameter that explains its purpose or expected values."
        }
      },
      "required": [
        "name"
      ]
    }
  }
}