{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-internetmonitor-monitor.json",
  "title": "AWSInternetMonitorMonitorProperties",
  "description": "Represents a monitor, which defines the monitoring boundaries for measurements that Internet Monitor publishes information about for an application. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-internetmonitor-monitor.json",
    "sourceSha256": "426cdddd3582cd5f9fd68918a2275e40d1847aaf0075024305430517cbf463bc"
  },
  "type": "object",
  "properties": {
    "MonitorName": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 255,
          "minLength": 1,
          "pattern": "^[a-zA-Z0-9_.-]+$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Resources": {
      "type": "array",
      "insertionOrder": false,
      "items": {
        "type": "string",
        "maxLength": 2048,
        "minLength": 20,
        "pattern": "^arn:.*"
      }
    },
    "ResourcesToAdd": {
      "type": "array",
      "insertionOrder": false,
      "items": {
        "type": "string",
        "maxLength": 2048,
        "minLength": 20
      }
    },
    "ResourcesToRemove": {
      "type": "array",
      "insertionOrder": false,
      "items": {
        "type": "string",
        "maxLength": 2048,
        "minLength": 20
      }
    },
    "Status": {
      "$ref": "#/$defs/MonitorConfigState"
    },
    "Tags": {
      "type": "array",
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    },
    "MaxCityNetworksToMonitor": {
      "type": "integer",
      "minimum": 1,
      "maximum": 500000
    },
    "TrafficPercentageToMonitor": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "InternetMeasurementsLogDelivery": {
      "$ref": "#/$defs/InternetMeasurementsLogDelivery"
    }
  },
  "typeName": "AWS::InternetMonitor::Monitor",
  "required": [
    "MonitorName"
  ],
  "additionalProperties": false,
  "$defs": {
    "MonitorConfigState": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "PENDING",
            "ACTIVE",
            "INACTIVE",
            "ERROR"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSInternetMonitorMonitorMonitorConfigStateDefinition"
    },
    "MonitorProcessingStatusCode": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "OK",
            "INACTIVE",
            "COLLECTING_DATA",
            "INSUFFICIENT_DATA",
            "FAULT_SERVICE",
            "FAULT_ACCESS_CLOUDWATCH"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSInternetMonitorMonitorMonitorProcessingStatusCodeDefinition"
    },
    "Tag": {
      "description": "The metadata that you apply to the cluster to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.",
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Value": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "title": "AWSInternetMonitorMonitorTagDefinition",
      "additionalProperties": false
    },
    "iso8601UTC": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^([0-2]\\d{3})-(0[0-9]|1[0-2])-([0-2]\\d|3[01])T([01]\\d|2[0-4]):([0-5]\\d):([0-6]\\d)((\\.\\d{3})?)Z$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The date value in ISO 8601 format. The timezone is always UTC. (YYYY-MM-DDThh:mm:ssZ)",
      "title": "AWSInternetMonitorMonitoriso8601UTCDefinition"
    },
    "InternetMeasurementsLogDelivery": {
      "type": "object",
      "properties": {
        "S3Config": {
          "$ref": "#/$defs/S3Config"
        }
      },
      "title": "AWSInternetMonitorMonitorInternetMeasurementsLogDeliveryDefinition",
      "additionalProperties": false
    },
    "S3Config": {
      "type": "object",
      "properties": {
        "BucketName": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 3
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "BucketPrefix": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "LogDeliveryStatus": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "ENABLED",
                "DISABLED"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "title": "AWSInternetMonitorMonitorS3ConfigDefinition",
      "additionalProperties": false
    }
  },
  "readOnlyProperties": [
    "/properties/CreatedAt",
    "/properties/ModifiedAt",
    "/properties/MonitorArn",
    "/properties/ProcessingStatus",
    "/properties/ProcessingStatusInfo"
  ],
  "writeOnlyProperties": [
    "/properties/ResourcesToAdd",
    "/properties/ResourcesToRemove"
  ],
  "createOnlyProperties": [
    "/properties/MonitorName"
  ],
  "primaryIdentifier": [
    "/properties/MonitorName"
  ],
  "tagging": {
    "taggable": true,
    "tagOnCreate": false,
    "tagUpdatable": true,
    "cloudFormationSystemTags": true,
    "tagProperty": "/properties/Tags"
  }
}
