{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-personalize/json-schema/amazon-personalize-create-recommender-request-schema.json",
  "title": "CreateRecommenderRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-personalize-recommender-api-openapi.yml#/components/schemas/CreateRecommenderRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the recommender."
    },
    "datasetGroupArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the destination domain dataset group for the recommender."
    },
    "recipeArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the recipe that the recommender will use. For a recommender, a recipe is a Domain dataset group use case. Only Domain dataset group use cases can be used to create a recommender. For information about use cases see Choosing recommender use cases."
    },
    "recommenderConfig": {
      "$ref": "#/$defs/RecommenderConfig"
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "A list of tags to apply to the recommender."
    }
  },
  "required": [
    "name",
    "datasetGroupArn",
    "recipeArn"
  ],
  "$defs": {
    "RecommenderConfig": {
      "type": "object",
      "properties": {
        "itemExplorationConfig": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Specifies the exploration configuration hyperparameters, including explorationWeight and explorationItemAgeCutOff, you want to use to configure the amount of item exploration Amazon Personalize uses when recommending items. Provide itemExplorationConfig data only if your recommenders generate personalized recommendations for a user (not popular items or similar items)."
        },
        "minRecommendationRequestsPerSecond": {
          "type": "integer",
          "description": "Specifies the requested minimum provisioned recommendation requests per second that Amazon Personalize will support. A high minRecommendationRequestsPerSecond will increase your bill. We recommend starting with 1 for minRecommendationRequestsPerSecond (the default). Track your usage using Amazon CloudWatch metrics, and increase the minRecommendationRequestsPerSecond as necessary."
        },
        "trainingDataConfig": {
          "$ref": "#/$defs/TrainingDataConfig"
        },
        "enableMetadataWithRecommendations": {
          "type": "boolean",
          "description": "Whether metadata with recommendations is enabled for the recommender. If enabled, you can specify the columns from your Items dataset in your request for recommendations. Amazon Personalize returns this data for each item in the recommendation response. For information about enabling metadata for a recommender, see Enabling metadata in recommendations for a recommender. If you enable metadata in recommendations, you will incur additional costs. For more information, see Amazon Personalize pricing."
        }
      }
    },
    "Tag": {
      "type": "object",
      "properties": {
        "tagKey": {
          "type": "string",
          "description": "One part of a key-value pair that makes up a tag. A key is a general label that acts like a category for more specific tag values."
        },
        "tagValue": {
          "type": "string",
          "description": "The optional part of a key-value pair that makes up a tag. A value acts as a descriptor within a tag category (key)."
        }
      },
      "required": [
        "tagKey",
        "tagValue"
      ]
    },
    "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."
        }
      }
    }
  }
}