{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-lightsail-alarm.json",
  "title": "AWSLightsailAlarmProperties",
  "description": "Resource Type definition for AWS::Lightsail::Alarm. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-lightsail.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-lightsail-alarm.json",
    "sourceSha256": "988e2f9b1042da603e069ade868249c72a44230b9e2dd01a132af32a7239d1cb"
  },
  "type": "object",
  "properties": {
    "AlarmName": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "\\w[\\w\\-]*\\w"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name for the alarm. Specify the name of an existing alarm to update, and overwrite the previous configuration of the alarm."
    },
    "MonitoredResourceName": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The validation status of the SSL/TLS certificate."
    },
    "MetricName": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name of the metric to associate with the alarm."
    },
    "ComparisonOperator": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The arithmetic operation to use when comparing the specified statistic to the threshold. The specified statistic value is used as the first operand."
    },
    "ContactProtocols": {
      "description": "The contact protocols to use for the alarm, such as Email, SMS (text messaging), or both.",
      "type": "array",
      "uniqueItems": true,
      "insertionOrder": false,
      "items": {
        "type": "string"
      }
    },
    "DatapointsToAlarm": {
      "description": "The number of data points that must be not within the specified threshold to trigger the alarm. If you are setting an \"M out of N\" alarm, this value (datapointsToAlarm) is the M.",
      "type": "integer"
    },
    "EvaluationPeriods": {
      "description": "The number of most recent periods over which data is compared to the specified threshold. If you are setting an \"M out of N\" alarm, this value (evaluationPeriods) is the N.",
      "type": "integer"
    },
    "NotificationEnabled": {
      "description": "Indicates whether the alarm is enabled. Notifications are enabled by default if you don't specify this parameter.",
      "type": "boolean"
    },
    "NotificationTriggers": {
      "description": "The alarm states that trigger a notification.",
      "type": "array",
      "uniqueItems": true,
      "insertionOrder": false,
      "items": {
        "type": "string"
      }
    },
    "Threshold": {
      "description": "The value against which the specified statistic is compared.",
      "type": "number"
    },
    "TreatMissingData": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Sets how this alarm will handle missing data points."
    }
  },
  "typeName": "AWS::Lightsail::Alarm",
  "createOnlyProperties": [
    "/properties/AlarmName",
    "/properties/MonitoredResourceName",
    "/properties/MetricName"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-lightsail.git",
  "primaryIdentifier": [
    "/properties/AlarmName"
  ],
  "additionalProperties": false,
  "required": [
    "AlarmName",
    "MonitoredResourceName",
    "MetricName",
    "ComparisonOperator",
    "EvaluationPeriods",
    "Threshold"
  ],
  "readOnlyProperties": [
    "/properties/AlarmArn",
    "/properties/State"
  ],
  "taggable": true
}
