{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-cloudwatch-anomalydetector.json",
  "title": "AWSCloudWatchAnomalyDetectorProperties",
  "description": "Resource Type definition for AWS::CloudWatch::AnomalyDetector. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-cloudwatch-anomalydetector.json",
    "sourceSha256": "27647688ce66b4a0a8390471f5495bb5a89cc8c095e823379c5f9c61a889b09c"
  },
  "type": "object",
  "properties": {
    "MetricName": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Stat": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Configuration": {
      "$ref": "#/$defs/Configuration"
    },
    "MetricMathAnomalyDetector": {
      "$ref": "#/$defs/MetricMathAnomalyDetector"
    },
    "Dimensions": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "$ref": "#/$defs/Dimension"
      }
    },
    "Namespace": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "SingleMetricAnomalyDetector": {
      "$ref": "#/$defs/SingleMetricAnomalyDetector"
    }
  },
  "typeName": "AWS::CloudWatch::AnomalyDetector",
  "readOnlyProperties": [
    "/properties/Id"
  ],
  "$defs": {
    "MetricMathAnomalyDetector": {
      "type": "object",
      "title": "AWSCloudWatchAnomalyDetectorMetricMathAnomalyDetectorDefinition",
      "properties": {
        "MetricDataQueries": {
          "type": "array",
          "uniqueItems": false,
          "items": {
            "$ref": "#/$defs/MetricDataQuery"
          }
        }
      },
      "additionalProperties": false
    },
    "Configuration": {
      "type": "object",
      "title": "AWSCloudWatchAnomalyDetectorConfigurationDefinition",
      "properties": {
        "MetricTimeZone": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "ExcludedTimeRanges": {
          "type": "array",
          "uniqueItems": false,
          "items": {
            "$ref": "#/$defs/Range"
          }
        }
      },
      "additionalProperties": false
    },
    "MetricStat": {
      "type": "object",
      "title": "AWSCloudWatchAnomalyDetectorMetricStatDefinition",
      "properties": {
        "Period": {
          "type": "integer"
        },
        "Metric": {
          "$ref": "#/$defs/Metric"
        },
        "Stat": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Unit": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Stat",
        "Period",
        "Metric"
      ],
      "additionalProperties": false
    },
    "Metric": {
      "type": "object",
      "title": "AWSCloudWatchAnomalyDetectorMetricDefinition",
      "properties": {
        "MetricName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Dimensions": {
          "type": "array",
          "uniqueItems": false,
          "items": {
            "$ref": "#/$defs/Dimension"
          }
        },
        "Namespace": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "MetricName",
        "Namespace"
      ],
      "additionalProperties": false
    },
    "Dimension": {
      "type": "object",
      "title": "AWSCloudWatchAnomalyDetectorDimensionDefinition",
      "properties": {
        "Value": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Name": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Value",
        "Name"
      ],
      "additionalProperties": false
    },
    "MetricDataQuery": {
      "type": "object",
      "title": "AWSCloudWatchAnomalyDetectorMetricDataQueryDefinition",
      "properties": {
        "AccountId": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "ReturnData": {
          "type": "boolean"
        },
        "Expression": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "MetricStat": {
          "$ref": "#/$defs/MetricStat"
        },
        "Label": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Period": {
          "type": "integer"
        },
        "Id": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Id"
      ],
      "additionalProperties": false
    },
    "Range": {
      "type": "object",
      "title": "AWSCloudWatchAnomalyDetectorRangeDefinition",
      "properties": {
        "EndTime": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "StartTime": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "EndTime",
        "StartTime"
      ],
      "additionalProperties": false
    },
    "SingleMetricAnomalyDetector": {
      "type": "object",
      "title": "AWSCloudWatchAnomalyDetectorSingleMetricAnomalyDetectorDefinition",
      "properties": {
        "MetricName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Dimensions": {
          "type": "array",
          "uniqueItems": false,
          "items": {
            "$ref": "#/$defs/Dimension"
          }
        },
        "Stat": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Namespace": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    }
  },
  "primaryIdentifier": [
    "/properties/Id"
  ],
  "additionalProperties": false,
  "createOnlyProperties": [
    "/properties/Dimensions",
    "/properties/MetricName",
    "/properties/Namespace",
    "/properties/SingleMetricAnomalyDetector",
    "/properties/MetricMathAnomalyDetector",
    "/properties/Stat"
  ]
}
