{
 "additionalProperties": false,
 "definitions": {
  "LogGroup": {
   "maxLength": 512,
   "minLength": 1,
   "pattern": "[\\.\\-_/#A-Za-z0-9]+",
   "type": "string"
  },
  "QueryParameter": {
   "additionalProperties": false,
   "properties": {
    "DefaultValue": {
     "maxLength": 1024,
     "minLength": 0,
     "type": "string"
    },
    "Description": {
     "maxLength": 512,
     "minLength": 0,
     "type": "string"
    },
    "Name": {
     "maxLength": 128,
     "minLength": 1,
     "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$",
     "type": "string"
    }
   },
   "required": [
    "Name"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/QueryDefinitionId"
 ],
 "properties": {
  "LogGroupNames": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/LogGroup"
   },
   "type": "array"
  },
  "Name": {
   "maxLength": 255,
   "minLength": 1,
   "type": "string"
  },
  "Parameters": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/QueryParameter"
   },
   "maxItems": 20,
   "minItems": 0,
   "type": "array"
  },
  "QueryDefinitionId": {
   "maxLength": 256,
   "minLength": 0,
   "type": "string"
  },
  "QueryLanguage": {
   "default": "CWLI",
   "enum": [
    "CWLI",
    "SQL",
    "PPL"
   ],
   "type": "string"
  },
  "QueryString": {
   "maxLength": 10000,
   "minLength": 1,
   "type": "string"
  }
 },
 "readOnlyProperties": [
  "/properties/QueryDefinitionId"
 ],
 "required": [
  "Name",
  "QueryString"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-logs.git",
 "tagging": {
  "taggable": false
 },
 "typeName": "AWS::Logs::QueryDefinition"
}
