{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-personalize/json-schema/amazon-personalize-describe-batch-inference-job-response-schema.json",
  "title": "DescribeBatchInferenceJobResponse",
  "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/DescribeBatchInferenceJobResponse",
  "type": "object",
  "properties": {
    "batchInferenceJob": {
      "$ref": "#/$defs/BatchInferenceJob"
    }
  },
  "$defs": {
    "BatchInferenceJob": {
      "type": "object",
      "properties": {
        "jobName": {
          "type": "string",
          "description": "The name of the batch inference job."
        },
        "batchInferenceJobArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the batch inference job."
        },
        "filterArn": {
          "type": "string",
          "description": "The ARN of the filter used on the batch inference job."
        },
        "failureReason": {
          "type": "string",
          "description": "If the batch inference job failed, the reason for the failure."
        },
        "solutionVersionArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the solution version from which the batch inference job was created."
        },
        "numResults": {
          "type": "integer",
          "description": "The number of recommendations generated by the batch inference job. This number includes the error messages generated for failed input records."
        },
        "jobInput": {
          "$ref": "#/$defs/BatchInferenceJobInput"
        },
        "jobOutput": {
          "$ref": "#/$defs/BatchInferenceJobOutput"
        },
        "batchInferenceJobConfig": {
          "$ref": "#/$defs/BatchInferenceJobConfig"
        },
        "roleArn": {
          "type": "string",
          "description": "The ARN of the Amazon Identity and Access Management (IAM) role that requested the batch inference job."
        },
        "batchInferenceJobMode": {
          "type": "string",
          "enum": [
            "BATCH_INFERENCE",
            "THEME_GENERATION"
          ],
          "description": "The job's mode."
        },
        "themeGenerationConfig": {
          "$ref": "#/$defs/ThemeGenerationConfig"
        },
        "status": {
          "type": "string",
          "description": "The status of the batch inference job. The status is one of the following values: PENDING IN PROGRESS ACTIVE CREATE FAILED"
        },
        "creationDateTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time at which the batch inference job was created."
        },
        "lastUpdatedDateTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time at which the batch inference job was last updated."
        }
      }
    },
    "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"
      ]
    },
    "ThemeGenerationConfig": {
      "type": "object",
      "properties": {
        "fieldsForThemeGeneration": {
          "$ref": "#/$defs/FieldsForThemeGeneration"
        }
      },
      "required": [
        "fieldsForThemeGeneration"
      ]
    }
  }
}