{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-ce-anomalymonitor.json",
  "title": "AWSCEAnomalyMonitorProperties",
  "description": "AWS Cost Anomaly Detection leverages advanced Machine Learning technologies to identify anomalous spend and root causes, so you can quickly take action. You can use Cost Anomaly Detection by creating monitor.. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-ce-anomalymonitor.json",
    "sourceSha256": "76c74785333c17b3d9f0a2cc34d2c0499b388bfb24f4b9dda960d1e7eaea14fe"
  },
  "type": "object",
  "properties": {
    "MonitorType": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "DIMENSIONAL",
            "CUSTOM"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "MonitorName": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "[\\S\\s]*",
          "minLength": 0,
          "maxLength": 1024
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name of the monitor."
    },
    "MonitorDimension": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "SERVICE"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The dimensions to evaluate"
    },
    "MonitorSpecification": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "ResourceTags": {
      "type": "array",
      "description": "Tags to assign to monitor.",
      "items": {
        "$ref": "#/$defs/ResourceTag"
      },
      "minItems": 0,
      "maxItems": 200,
      "insertionOrder": false
    }
  },
  "typeName": "AWS::CE::AnomalyMonitor",
  "primaryIdentifier": [
    "/properties/MonitorArn"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "additionalProperties": false,
  "readOnlyProperties": [
    "/properties/MonitorArn",
    "/properties/CreationDate",
    "/properties/DimensionValueCount",
    "/properties/LastEvaluatedDate",
    "/properties/LastUpdatedDate",
    "/properties/DimensionalValueCount"
  ],
  "$defs": {
    "Arn": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^arn:aws[-a-z0-9]*:[a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-Z0-9/:_]+$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Monitor ARN",
      "title": "AWSCEAnomalyMonitorArnDefinition"
    },
    "ResourceTag": {
      "description": "A key-value pair to associate with a resource.",
      "type": "object",
      "title": "AWSCEAnomalyMonitorResourceTagDefinition",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^(?!aws:).*$",
              "minLength": 1,
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The key name for the tag."
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 0,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The value for the tag."
        }
      },
      "required": [
        "Key",
        "Value"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "MonitorName",
    "MonitorType"
  ],
  "createOnlyProperties": [
    "/properties/MonitorType",
    "/properties/MonitorDimension",
    "/properties/MonitorSpecification",
    "/properties/ResourceTags"
  ]
}
