{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-personalize/json-schema/amazon-personalize-create-batch-inference-job-request-schema.json",
  "title": "CreateBatchInferenceJobRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-personalize-batch-inference-job-api-openapi.yml#/components/schemas/CreateBatchInferenceJobRequest",
  "type": "object",
  "properties": {
    "jobName": {
      "type": "string",
      "description": "The name of the batch inference job to create."
    },
    "solutionVersionArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the solution version that will be used to generate the batch inference recommendations."
    },
    "filterArn": {
      "type": "string",
      "description": "The ARN of the filter to apply to the batch inference job. For more information on using filters, see Filtering batch recommendations."
    },
    "numResults": {
      "type": "integer",
      "description": "The number of recommendations to retrieve."
    },
    "jobInput": {
      "$ref": "#/$defs/BatchInferenceJobInput"
    },
    "jobOutput": {
      "$ref": "#/$defs/BatchInferenceJobOutput"
    },
    "roleArn": {
      "type": "string",
      "description": "The ARN of the Amazon Identity and Access Management role that has permissions to read and write to your input and output Amazon S3 buckets respectively."
    },
    "batchInferenceJobConfig": {
      "$ref": "#/$defs/BatchInferenceJobConfig"
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "A list of tags to apply to the batch inference job."
    },
    "batchInferenceJobMode": {
      "type": "string",
      "enum": [
        "BATCH_INFERENCE",
        "THEME_GENERATION"
      ],
      "description": "The mode of the batch inference job. To generate descriptive themes for groups of similar items, set the job mode to THEME_GENERATION. If you don't want to generate themes, use the default BATCH_INFERENCE. When you get batch recommendations with themes, you will incur additional costs. For more information, see Amazon Personalize pricing."
    },
    "themeGenerationConfig": {
      "$ref": "#/$defs/ThemeGenerationConfig"
    }
  },
  "required": [
    "jobName",
    "solutionVersionArn",
    "jobInput",
    "jobOutput",
    "roleArn"
  ],
  "$defs": {
    "BatchInferenceJobConfig": {
      "type": "object",
      "properties": {
        "itemExplorationConfig": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "A string to string map specifying 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. See User-Personalization."
        },
        "rankingInfluence": {
          "type": "object",
          "additionalProperties": {
            "type": "number"
          },
          "description": "A map of ranking influence values for POPULARITY and FRESHNESS. For each key, specify a numerical value between 0.0 and 1.0 that determines how much influence that ranking factor has on the final recommendations. A value closer to 1.0 gives more weight to the factor, while a value closer to 0.0 reduces its influence."
        }
      }
    },
    "BatchInferenceJobInput": {
      "type": "object",
      "properties": {
        "s3DataSource": {
          "$ref": "#/$defs/S3DataConfig"
        }
      },
      "required": [
        "s3DataSource"
      ]
    },
    "BatchInferenceJobOutput": {
      "type": "object",
      "properties": {
        "s3DataDestination": {
          "$ref": "#/$defs/S3DataConfig"
        }
      },
      "required": [
        "s3DataDestination"
      ]
    },
    "FieldsForThemeGeneration": {
      "type": "object",
      "properties": {
        "itemName": {
          "type": "string",
          "description": "The name of the Items dataset column that stores the name of each item in the dataset."
        }
      },
      "required": [
        "itemName"
      ]
    },
    "S3DataConfig": {
      "type": "object",
      "properties": {
        "path": {
          "type": "string",
          "description": "The file path of the Amazon S3 bucket."
        },
        "kmsKeyArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Key Management Service (KMS) key that Amazon Personalize uses to encrypt or decrypt the input and output files."
        }
      },
      "required": [
        "path"
      ]
    },
    "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"
      ]
    },
    "ThemeGenerationConfig": {
      "type": "object",
      "properties": {
        "fieldsForThemeGeneration": {
          "$ref": "#/$defs/FieldsForThemeGeneration"
        }
      },
      "required": [
        "fieldsForThemeGeneration"
      ]
    }
  }
}