{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-personalize/json-schema/amazon-personalize-describe-batch-segment-job-response-schema.json",
  "title": "DescribeBatchSegmentJobResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-personalize-batch-segment-job-api-openapi.yml#/components/schemas/DescribeBatchSegmentJobResponse",
  "type": "object",
  "properties": {
    "batchSegmentJob": {
      "$ref": "#/$defs/BatchSegmentJob"
    }
  },
  "$defs": {
    "BatchSegmentJob": {
      "type": "object",
      "properties": {
        "jobName": {
          "type": "string",
          "description": "The name of the batch segment job."
        },
        "batchSegmentJobArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the batch segment job."
        },
        "filterArn": {
          "type": "string",
          "description": "The ARN of the filter used on the batch segment job."
        },
        "failureReason": {
          "type": "string",
          "description": "If the batch segment job failed, the reason for the failure."
        },
        "solutionVersionArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the solution version used by the batch segment job to generate batch segments."
        },
        "numResults": {
          "type": "integer",
          "description": "The number of predicted users generated by the batch segment job for each line of input data. The maximum number of users per segment is 5 million."
        },
        "jobInput": {
          "$ref": "#/$defs/BatchSegmentJobInput"
        },
        "jobOutput": {
          "$ref": "#/$defs/BatchSegmentJobOutput"
        },
        "roleArn": {
          "type": "string",
          "description": "The ARN of the Amazon Identity and Access Management (IAM) role that requested the batch segment job."
        },
        "status": {
          "type": "string",
          "description": "The status of the batch segment 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 segment job was created."
        },
        "lastUpdatedDateTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time at which the batch segment job last updated."
        }
      }
    },
    "BatchSegmentJobInput": {
      "type": "object",
      "properties": {
        "s3DataSource": {
          "$ref": "#/$defs/S3DataConfig"
        }
      },
      "required": [
        "s3DataSource"
      ]
    },
    "BatchSegmentJobOutput": {
      "type": "object",
      "properties": {
        "s3DataDestination": {
          "$ref": "#/$defs/S3DataConfig"
        }
      },
      "required": [
        "s3DataDestination"
      ]
    },
    "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"
      ]
    }
  }
}