{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-personalize/json-schema/amazon-personalize-describe-solution-version-response-schema.json",
  "title": "DescribeSolutionVersionResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-personalize-solution-version-api-openapi.yml#/components/schemas/DescribeSolutionVersionResponse",
  "type": "object",
  "properties": {
    "solutionVersion": {
      "$ref": "#/$defs/SolutionVersion"
    }
  },
  "$defs": {
    "AutoMLConfig": {
      "type": "object",
      "properties": {
        "metricName": {
          "type": "string",
          "description": "The metric to optimize."
        },
        "recipeList": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of candidate recipes."
        }
      }
    },
    "AutoTrainingConfig": {
      "type": "object",
      "properties": {
        "schedulingExpression": {
          "type": "string",
          "description": "Specifies how often to automatically train new solution versions. Specify a rate expression in rate(value unit) format. For value, specify a number between 1 and 30. For unit, specify day or days. For example, to automatically create a new solution version every 5 days, specify rate(5 days). The default is every 7 days. For more information about auto training, see Creating and configuring a solution."
        }
      }
    },
    "CategoricalHyperParameterRange": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the hyperparameter."
        },
        "values": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of the categories for the hyperparameter."
        }
      }
    },
    "ContinuousHyperParameterRange": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the hyperparameter."
        },
        "minValue": {
          "type": "number",
          "description": "The minimum allowable value for the hyperparameter."
        },
        "maxValue": {
          "type": "number",
          "description": "The maximum allowable value for the hyperparameter."
        }
      }
    },
    "EventParameters": {
      "type": "object",
      "properties": {
        "eventType": {
          "type": "string",
          "description": "The name of the event type to be considered for solution creation."
        },
        "eventValueThreshold": {
          "type": "number",
          "description": "The threshold of the event type. Only events with a value greater or equal to this threshold will be considered for solution creation."
        },
        "weight": {
          "type": "number",
          "description": "The weight of the event type. A higher weight means higher importance of the event type for the created solution."
        }
      }
    },
    "EventsConfig": {
      "type": "object",
      "properties": {
        "eventParametersList": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EventParameters"
          },
          "description": "A list of event parameters, which includes event types and their event value thresholds and weights."
        }
      }
    },
    "HPOConfig": {
      "type": "object",
      "properties": {
        "hpoObjective": {
          "$ref": "#/$defs/HPOObjective"
        },
        "hpoResourceConfig": {
          "$ref": "#/$defs/HPOResourceConfig"
        },
        "algorithmHyperParameterRanges": {
          "$ref": "#/$defs/HyperParameterRanges"
        }
      }
    },
    "HPOObjective": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "The type of the metric. Valid values are Maximize and Minimize."
        },
        "metricName": {
          "type": "string",
          "description": "The name of the metric."
        },
        "metricRegex": {
          "type": "string",
          "description": "A regular expression for finding the metric in the training job logs."
        }
      }
    },
    "HPOResourceConfig": {
      "type": "object",
      "properties": {
        "maxNumberOfTrainingJobs": {
          "type": "string",
          "description": "The maximum number of training jobs when you create a solution version. The maximum value for maxNumberOfTrainingJobs is 40."
        },
        "maxParallelTrainingJobs": {
          "type": "string",
          "description": "The maximum number of parallel training jobs when you create a solution version. The maximum value for maxParallelTrainingJobs is 10."
        }
      }
    },
    "HyperParameterRanges": {
      "type": "object",
      "properties": {
        "integerHyperParameterRanges": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/IntegerHyperParameterRange"
          },
          "description": "The integer-valued hyperparameters and their ranges."
        },
        "continuousHyperParameterRanges": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ContinuousHyperParameterRange"
          },
          "description": "The continuous hyperparameters and their ranges."
        },
        "categoricalHyperParameterRanges": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CategoricalHyperParameterRange"
          },
          "description": "The categorical hyperparameters and their ranges."
        }
      }
    },
    "IntegerHyperParameterRange": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the hyperparameter."
        },
        "minValue": {
          "type": "integer",
          "description": "The minimum allowable value for the hyperparameter."
        },
        "maxValue": {
          "type": "integer",
          "description": "The maximum allowable value for the hyperparameter."
        }
      }
    },
    "OptimizationObjective": {
      "type": "object",
      "properties": {
        "itemAttribute": {
          "type": "string",
          "description": "The numerical metadata column in an Items dataset related to the optimization objective. For example, VIDEO_LENGTH (to maximize streaming minutes), or PRICE (to maximize revenue)."
        },
        "objectiveSensitivity": {
          "type": "string",
          "enum": [
            "LOW",
            "MEDIUM",
            "HIGH",
            "OFF"
          ],
          "description": "Specifies how Amazon Personalize balances the importance of your optimization objective versus relevance."
        }
      }
    },
    "SolutionConfig": {
      "type": "object",
      "properties": {
        "eventValueThreshold": {
          "type": "string",
          "description": "Only events with a value greater than or equal to this threshold are used for training a model."
        },
        "hpoConfig": {
          "$ref": "#/$defs/HPOConfig"
        },
        "algorithmHyperParameters": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Lists the algorithm hyperparameters and their values."
        },
        "featureTransformationParameters": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Lists the feature transformation parameters."
        },
        "autoMLConfig": {
          "$ref": "#/$defs/AutoMLConfig"
        },
        "eventsConfig": {
          "$ref": "#/$defs/EventsConfig"
        },
        "optimizationObjective": {
          "$ref": "#/$defs/OptimizationObjective"
        },
        "trainingDataConfig": {
          "$ref": "#/$defs/TrainingDataConfig"
        },
        "autoTrainingConfig": {
          "$ref": "#/$defs/AutoTrainingConfig"
        }
      }
    },
    "SolutionVersion": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the solution version."
        },
        "solutionVersionArn": {
          "type": "string",
          "description": "The ARN of the solution version."
        },
        "solutionArn": {
          "type": "string",
          "description": "The ARN of the solution."
        },
        "performHPO": {
          "type": "boolean",
          "description": "Whether to perform hyperparameter optimization (HPO) on the chosen recipe. The default is false."
        },
        "performAutoML": {
          "type": "boolean",
          "description": "When true, Amazon Personalize searches for the most optimal recipe according to the solution configuration. When false (the default), Amazon Personalize uses recipeArn."
        },
        "performIncrementalUpdate": {
          "type": "boolean",
          "description": "Whether the solution version should perform an incremental update. When set to true, the training will process only the data that has changed since the latest training, similar to when trainingMode is set to UPDATE. This can only be used with solution versions that use the User-Personalization recipe."
        },
        "recipeArn": {
          "type": "string",
          "description": "The ARN of the recipe used in the solution."
        },
        "eventType": {
          "type": "string",
          "description": "The event type (for example, 'click' or 'like') that is used for training the model."
        },
        "datasetGroupArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the dataset group providing the training data."
        },
        "solutionConfig": {
          "$ref": "#/$defs/SolutionConfig"
        },
        "trainingHours": {
          "type": "number",
          "description": "The time used to train the model. You are billed for the time it takes to train a model. This field is visible only after Amazon Personalize successfully trains a model."
        },
        "trainingMode": {
          "type": "string",
          "enum": [
            "FULL",
            "UPDATE",
            "AUTOTRAIN"
          ],
          "description": "The scope of training to be performed when creating the solution version. A FULL training considers all of the data in your dataset group. An UPDATE processes only the data that has changed since the latest training. Only solution versions created with the User-Personalization recipe can use UPDATE."
        },
        "tunedHPOParams": {
          "$ref": "#/$defs/TunedHPOParams"
        },
        "status": {
          "type": "string",
          "description": "The status of the solution version. A solution version can be in one of the following states: CREATE PENDING CREATE IN_PROGRESS ACTIVE CREATE FAILED CREATE STOPPING CREATE STOPPED"
        },
        "failureReason": {
          "type": "string",
          "description": "If training a solution version fails, the reason for the failure."
        },
        "creationDateTime": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time (in Unix time) that this version of the solution was created."
        },
        "lastUpdatedDateTime": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time (in Unix time) that the solution was last updated."
        },
        "trainingType": {
          "type": "string",
          "enum": [
            "AUTOMATIC",
            "MANUAL"
          ],
          "description": "Whether the solution version was created automatically or manually."
        }
      }
    },
    "TrainingDataConfig": {
      "type": "object",
      "properties": {
        "excludedDatasetColumns": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "description": "Specifies the columns to exclude from training. Each key is a dataset type, and each value is a list of columns. Exclude columns to control what data Amazon Personalize uses to generate recommendations. For example, you might have a column that you want to use only to filter recommendations. You can exclude this column from training and Amazon Personalize considers it only when filtering."
        },
        "includedDatasetColumns": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "description": "A map that specifies which columns to include from each dataset during training. The map can contain up to 3 entries, where each key is a dataset name (maximum length of 256 characters, must contain only letters and underscores) and each value is an array of up to 50 column names. Column names can be up to 150 characters long, must start with a letter or underscore, and can contain only letters, numbers, and underscores."
        }
      }
    },
    "TunedHPOParams": {
      "type": "object",
      "properties": {
        "algorithmHyperParameters": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "A list of the hyperparameter values of the best performing model."
        }
      }
    }
  }
}