{
 "allOf": [
  {
   "if": {
    "properties": {
     "Engine": {
      "type": "string"
     }
    },
    "required": [
     "Engine"
    ]
   },
   "then": {
    "properties": {
     "Engine": {
      "enum": [
       "memcached",
       "redis",
       "valkey"
      ]
     }
    }
   }
  },
  {
   "if": {
    "properties": {
     "Engine": {
      "const": "memcached"
     },
     "EngineVersion": {
      "type": [
       "string",
       "number"
      ]
     }
    },
    "required": [
     "Engine",
     "EngineVersion"
    ]
   },
   "then": {
    "properties": {
     "EngineVersion": {
      "enum": [
       "1.4.14",
       "1.4.24",
       "1.4.33",
       "1.4.34",
       "1.4.5",
       "1.5.10",
       "1.5.16",
       "1.6.12",
       "1.6.17",
       "1.6.22",
       "1.6.6"
      ]
     }
    }
   }
  },
  {
   "if": {
    "properties": {
     "Engine": {
      "const": "redis"
     },
     "EngineVersion": {
      "type": [
       "string",
       "number"
      ]
     }
    },
    "required": [
     "Engine",
     "EngineVersion"
    ]
   },
   "then": {
    "properties": {
     "EngineVersion": {
      "enum": [
       "4.0.10",
       "5.0.6",
       "6.0",
       "6.2",
       "7.0",
       "7.1"
      ]
     }
    }
   }
  },
  {
   "if": {
    "properties": {
     "Engine": {
      "const": "valkey"
     },
     "EngineVersion": {
      "type": [
       "string",
       "number"
      ]
     }
    },
    "required": [
     "Engine",
     "EngineVersion"
    ]
   },
   "then": {
    "properties": {
     "EngineVersion": {
      "enum": [
       "7.2",
       "8.0",
       "8.1",
       "8.2"
      ]
     }
    }
   }
  }
 ],
 "description": "Automatically updated using aws api"
}
