{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-logs-querydefinition.json",
  "title": "AWSLogsQueryDefinitionProperties",
  "description": "The resource schema for AWSLogs QueryDefinition. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-logs.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-logs-querydefinition.json",
    "sourceSha256": "8b1652dec3c1615c95453479162c4b0668b231e447b0012851e78ebd07f4d0d1"
  },
  "type": "object",
  "properties": {
    "Name": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 255
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "A name for the saved query definition"
    },
    "QueryString": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 10000
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The query string to use for this definition"
    },
    "LogGroupNames": {
      "description": "Optionally define specific log groups as part of your query definition",
      "type": "array",
      "insertionOrder": false,
      "items": {
        "description": "LogGroup name",
        "$ref": "#/$defs/LogGroup"
      }
    }
  },
  "typeName": "AWS::Logs::QueryDefinition",
  "taggable": false,
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-logs.git",
  "additionalProperties": false,
  "primaryIdentifier": [
    "/properties/QueryDefinitionId"
  ],
  "required": [
    "Name",
    "QueryString"
  ],
  "$defs": {
    "LogGroup": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "[\\.\\-_/#A-Za-z0-9]+",
          "minLength": 1,
          "maxLength": 512
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSLogsQueryDefinitionLogGroupDefinition"
    }
  },
  "readOnlyProperties": [
    "/properties/QueryDefinitionId"
  ]
}
