{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/AlarmName"
 ],
 "definitions": {
  "ScheduleConfiguration": {
   "additionalProperties": false,
   "properties": {
    "EndTimeOffset": {
     "type": "integer"
    },
    "ScheduleExpression": {
     "type": "string"
    },
    "StartTimeOffset": {
     "type": "integer"
    }
   },
   "required": [
    "ScheduleExpression"
   ],
   "type": "object"
  },
  "ScheduledQueryConfiguration": {
   "additionalProperties": false,
   "properties": {
    "AggregationExpression": {
     "type": "string"
    },
    "LogGroupIdentifiers": {
     "insertionOrder": false,
     "items": {
      "type": "string"
     },
     "type": "array"
    },
    "QueryLanguage": {
     "type": "string"
    },
    "QueryString": {
     "type": "string"
    },
    "ScheduleConfiguration": {
     "$ref": "#/definitions/ScheduleConfiguration"
    },
    "ScheduledQueryRoleARN": {
     "type": "string"
    }
   },
   "required": [
    "QueryString",
    "QueryLanguage",
    "AggregationExpression",
    "LogGroupIdentifiers",
    "ScheduledQueryRoleARN",
    "ScheduleConfiguration"
   ],
   "type": "object"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 1,
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/AlarmName"
 ],
 "properties": {
  "ActionLogLineCount": {
   "maximum": 50,
   "minimum": 0,
   "type": "integer"
  },
  "ActionLogLineRoleArn": {
   "type": "string"
  },
  "ActionsEnabled": {
   "default": true,
   "type": "boolean"
  },
  "AlarmActions": {
   "items": {
    "type": "string"
   },
   "type": "array",
   "uniqueItems": false
  },
  "AlarmDescription": {
   "type": "string"
  },
  "AlarmName": {
   "maxLength": 255,
   "minLength": 1,
   "type": "string"
  },
  "Arn": {
   "type": "string"
  },
  "ComparisonOperator": {
   "type": "string"
  },
  "InsufficientDataActions": {
   "items": {
    "type": "string"
   },
   "type": "array",
   "uniqueItems": false
  },
  "OKActions": {
   "items": {
    "type": "string"
   },
   "type": "array",
   "uniqueItems": false
  },
  "QueryResultsToAlarm": {
   "type": "integer"
  },
  "QueryResultsToEvaluate": {
   "type": "integer"
  },
  "ScheduledQueryConfiguration": {
   "$ref": "#/definitions/ScheduledQueryConfiguration"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "maxItems": 50,
   "type": "array",
   "uniqueItems": true
  },
  "Threshold": {
   "type": "number"
  },
  "TreatMissingData": {
   "type": "string"
  }
 },
 "readOnlyProperties": [
  "/properties/Arn"
 ],
 "required": [
  "ComparisonOperator",
  "Threshold",
  "QueryResultsToAlarm",
  "QueryResultsToEvaluate",
  "ScheduledQueryConfiguration"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-cloudwatch.git",
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::CloudWatch::LogAlarm"
}
