{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-route53-healthcheck.json",
  "title": "AWSRoute53HealthCheckProperties",
  "description": "Resource schema for AWS::Route53::HealthCheck.. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-route53.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-route53-healthcheck.json",
    "sourceSha256": "4656601255bb5a53a586ec16138e3989174dfd3f4f12f324995e43745dc8573c"
  },
  "type": "object",
  "properties": {
    "HealthCheckConfig": {
      "description": "A complex type that contains information about the health check.",
      "type": "object",
      "properties": {
        "AlarmIdentifier": {
          "$ref": "#/$defs/AlarmIdentifier"
        },
        "ChildHealthChecks": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "maxItems": 256,
          "insertionOrder": false
        },
        "EnableSNI": {
          "type": "boolean"
        },
        "FailureThreshold": {
          "type": "integer",
          "minimum": 1,
          "maximum": 10
        },
        "FullyQualifiedDomainName": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 255
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "HealthThreshold": {
          "type": "integer",
          "minimum": 0,
          "maximum": 256
        },
        "InsufficientDataHealthStatus": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "Healthy",
                "LastKnownStatus",
                "Unhealthy"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Inverted": {
          "type": "boolean"
        },
        "IPAddress": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 45,
              "pattern": "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "MeasureLatency": {
          "type": "boolean"
        },
        "Port": {
          "type": "integer",
          "minimum": 1,
          "maximum": 65535
        },
        "Regions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "maxItems": 64,
          "insertionOrder": false
        },
        "RequestInterval": {
          "type": "integer",
          "minimum": 10,
          "maximum": 30
        },
        "ResourcePath": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 255
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "SearchString": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 255
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "RoutingControlArn": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Type": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "CALCULATED",
                "CLOUDWATCH_METRIC",
                "HTTP",
                "HTTP_STR_MATCH",
                "HTTPS",
                "HTTPS_STR_MATCH",
                "TCP",
                "RECOVERY_CONTROL"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Type"
      ],
      "additionalProperties": false
    },
    "HealthCheckTags": {
      "type": "array",
      "uniqueItems": true,
      "insertionOrder": false,
      "description": "An array of key-value pairs to apply to this resource.",
      "items": {
        "$ref": "#/$defs/HealthCheckTag"
      }
    }
  },
  "typeName": "AWS::Route53::HealthCheck",
  "taggable": true,
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-route53.git",
  "additionalProperties": false,
  "primaryIdentifier": [
    "/properties/HealthCheckId"
  ],
  "$defs": {
    "AlarmIdentifier": {
      "description": "A complex type that identifies the CloudWatch alarm that you want Amazon Route 53 health checkers to use to determine whether the specified health check is healthy.",
      "type": "object",
      "title": "AWSRoute53HealthCheckAlarmIdentifierDefinition",
      "properties": {
        "Name": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The name of the CloudWatch alarm that you want Amazon Route 53 health checkers to use to determine whether this health check is healthy."
        },
        "Region": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "For the CloudWatch alarm that you want Route 53 health checkers to use to determine whether this health check is healthy, the region that the alarm was created in."
        }
      },
      "required": [
        "Name",
        "Region"
      ],
      "additionalProperties": false
    },
    "HealthCheckTag": {
      "description": "A key-value pair to associate with a resource.",
      "type": "object",
      "title": "AWSRoute53HealthCheckHealthCheckTagDefinition",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The key name of the tag."
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "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": [
        "Value",
        "Key"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "HealthCheckConfig"
  ],
  "createOnlyProperties": [
    "/properties/HealthCheckConfig/Type",
    "/properties/HealthCheckConfig/MeasureLatency",
    "/properties/HealthCheckConfig/RequestInterval"
  ],
  "readOnlyProperties": [
    "/properties/HealthCheckId"
  ]
}
