{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-sagemaker/json-schema/amazon-sagemaker-describe-labeling-job-response-schema.json",
  "title": "DescribeLabelingJobResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-sagemaker-labeling-job-api-openapi.yml#/components/schemas/DescribeLabelingJobResponse",
  "type": "object",
  "properties": {
    "LabelingJobStatus": {
      "type": "string",
      "enum": [
        "Initializing",
        "InProgress",
        "Completed",
        "Failed",
        "Stopping",
        "Stopped"
      ],
      "description": "The processing status of the labeling job."
    },
    "LabelCounters": {
      "$ref": "#/$defs/LabelCounters"
    },
    "FailureReason": {
      "type": "string",
      "description": "If the job failed, the reason that it failed."
    },
    "CreationTime": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time that the labeling job was created."
    },
    "LastModifiedTime": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time that the labeling job was last updated."
    },
    "JobReferenceCode": {
      "type": "string",
      "description": "A unique identifier for work done as part of a labeling job."
    },
    "LabelingJobName": {
      "type": "string",
      "description": "The name assigned to the labeling job when it was created."
    },
    "LabelingJobArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the labeling job."
    },
    "LabelAttributeName": {
      "type": "string",
      "description": "The attribute used as the label in the output manifest file."
    },
    "InputConfig": {
      "$ref": "#/$defs/LabelingJobInputConfig"
    },
    "OutputConfig": {
      "$ref": "#/$defs/LabelingJobOutputConfig"
    },
    "RoleArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) that SageMaker assumes to perform tasks on your behalf during data labeling."
    },
    "LabelCategoryConfigS3Uri": {
      "type": "string",
      "description": "The S3 location of the JSON file that defines the categories used to label data objects. Please note the following label-category limits: Semantic segmentation labeling jobs using automated labeling: 20 labels Box bounding labeling jobs (all): 10 labels The file is a JSON structure in the following format: { \"document-version\": \"2018-11-28\" \"labels\": [ { \"label\": \"label 1\" }, { \"label\": \"label 2\" }, ... { \"label\": \"label n\" } ] }"
    },
    "StoppingConditions": {
      "$ref": "#/$defs/LabelingJobStoppingConditions"
    },
    "LabelingJobAlgorithmsConfig": {
      "$ref": "#/$defs/LabelingJobAlgorithmsConfig"
    },
    "HumanTaskConfig": {
      "$ref": "#/$defs/HumanTaskConfig"
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources."
    },
    "LabelingJobOutput": {
      "$ref": "#/$defs/LabelingJobOutput"
    }
  },
  "required": [
    "LabelingJobStatus",
    "LabelCounters",
    "CreationTime",
    "LastModifiedTime",
    "JobReferenceCode",
    "LabelingJobName",
    "LabelingJobArn",
    "InputConfig",
    "OutputConfig",
    "RoleArn",
    "HumanTaskConfig"
  ],
  "$defs": {
    "AnnotationConsolidationConfig": {
      "type": "object",
      "properties": {
        "AnnotationConsolidationLambdaArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of a Lambda function implements the logic for annotation consolidation and to process output data. For built-in task types, use one of the following Amazon SageMaker Ground Truth Lambda function ARNs for AnnotationConsolidationLambdaArn. For custom labeling workflows, see Post-annotation Lambda. Bounding box - Finds the most similar boxes from different workers based on the Jaccard index of the boxes. arn:aws:lambda:us-east-1:432418664414:function:ACS-BoundingBox arn:aws:lambda:us-east-2:266458841044:function:ACS-BoundingBox arn:aws:lambda:us-west-2:081040173940:"
        }
      },
      "required": [
        "AnnotationConsolidationLambdaArn"
      ]
    },
    "HumanTaskConfig": {
      "type": "object",
      "properties": {
        "WorkteamArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the work team assigned to complete the tasks."
        },
        "UiConfig": {
          "$ref": "#/$defs/UiConfig"
        },
        "PreHumanTaskLambdaArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of a Lambda function that is run before a data object is sent to a human worker. Use this function to provide input to a custom labeling job. For built-in task types, use one of the following Amazon SageMaker Ground Truth Lambda function ARNs for PreHumanTaskLambdaArn. For custom labeling workflows, see Pre-annotation Lambda. Bounding box - Finds the most similar boxes from different workers based on the Jaccard index of the boxes. arn:aws:lambda:us-east-1:432418664414:function:PRE-BoundingBox arn:aws:lambda:us-east-2:266458841044:function:PRE-BoundingBox arn:aws"
        },
        "TaskKeywords": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Keywords used to describe the task so that workers on Amazon Mechanical Turk can discover the task."
        },
        "TaskTitle": {
          "type": "string",
          "description": "A title for the task for your human workers."
        },
        "TaskDescription": {
          "type": "string",
          "description": "A description of the task for your human workers."
        },
        "NumberOfHumanWorkersPerDataObject": {
          "type": "integer",
          "description": "The number of human workers that will label an object."
        },
        "TaskTimeLimitInSeconds": {
          "type": "integer",
          "description": "The amount of time that a worker has to complete a task. If you create a custom labeling job, the maximum value for this parameter is 8 hours (28,800 seconds). If you create a labeling job using a built-in task type the maximum for this parameter depends on the task type you use: For image and text labeling jobs, the maximum is 8 hours (28,800 seconds). For 3D point cloud and video frame labeling jobs, the maximum is 30 days (2952,000 seconds) for non-AL mode. For most users, the maximum is also 30 days."
        },
        "TaskAvailabilityLifetimeInSeconds": {
          "type": "integer",
          "description": "The length of time that a task remains available for labeling by human workers. The default and maximum values for this parameter depend on the type of workforce you use. If you choose the Amazon Mechanical Turk workforce, the maximum is 12 hours (43,200 seconds). The default is 6 hours (21,600 seconds). If you choose a private or vendor workforce, the default value is 30 days (2592,000 seconds) for non-AL mode. For most users, the maximum is also 30 days."
        },
        "MaxConcurrentTaskCount": {
          "type": "integer",
          "description": "Defines the maximum number of data objects that can be labeled by human workers at the same time. Also referred to as batch size. Each object may have more than one worker at one time. The default value is 1000 objects. To increase the maximum value to 5000 objects, contact Amazon Web Services Support."
        },
        "AnnotationConsolidationConfig": {
          "$ref": "#/$defs/AnnotationConsolidationConfig"
        },
        "PublicWorkforceTaskPrice": {
          "$ref": "#/$defs/PublicWorkforceTaskPrice"
        }
      },
      "required": [
        "WorkteamArn",
        "UiConfig",
        "TaskTitle",
        "TaskDescription",
        "NumberOfHumanWorkersPerDataObject",
        "TaskTimeLimitInSeconds"
      ]
    },
    "LabelCounters": {
      "type": "object",
      "properties": {
        "TotalLabeled": {
          "type": "integer",
          "description": "The total number of objects labeled."
        },
        "HumanLabeled": {
          "type": "integer",
          "description": "The total number of objects labeled by a human worker."
        },
        "MachineLabeled": {
          "type": "integer",
          "description": "The total number of objects labeled by automated data labeling."
        },
        "FailedNonRetryableError": {
          "type": "integer",
          "description": "The total number of objects that could not be labeled due to an error."
        },
        "Unlabeled": {
          "type": "integer",
          "description": "The total number of objects not yet labeled."
        }
      }
    },
    "LabelingJobAlgorithmsConfig": {
      "type": "object",
      "properties": {
        "LabelingJobAlgorithmSpecificationArn": {
          "type": "string",
          "description": "Specifies the Amazon Resource Name (ARN) of the algorithm used for auto-labeling. You must select one of the following ARNs: Image classification arn:aws:sagemaker:region:027400017018:labeling-job-algorithm-specification/image-classification Text classification arn:aws:sagemaker:region:027400017018:labeling-job-algorithm-specification/text-classification Object detection arn:aws:sagemaker:region:027400017018:labeling-job-algorithm-specification/object-detection Semantic Segmentation arn:aws:sagemaker:region:027400017018:labeling-job-algorithm-specification/semantic-segmentation"
        },
        "InitialActiveLearningModelArn": {
          "type": "string",
          "description": "At the end of an auto-label job Ground Truth sends the Amazon Resource Name (ARN) of the final model used for auto-labeling. You can use this model as the starting point for subsequent similar jobs by providing the ARN of the model here."
        },
        "LabelingJobResourceConfig": {
          "$ref": "#/$defs/LabelingJobResourceConfig"
        }
      },
      "required": [
        "LabelingJobAlgorithmSpecificationArn"
      ]
    },
    "LabelingJobDataAttributes": {
      "type": "object",
      "properties": {
        "ContentClassifiers": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "FreeOfPersonallyIdentifiableInformation",
              "FreeOfAdultContent"
            ]
          },
          "description": "Declares that your content is free of personally identifiable information or adult content. SageMaker may restrict the Amazon Mechanical Turk workers that can view your task based on this information."
        }
      }
    },
    "LabelingJobDataSource": {
      "type": "object",
      "properties": {
        "S3DataSource": {
          "$ref": "#/$defs/LabelingJobS3DataSource"
        },
        "SnsDataSource": {
          "$ref": "#/$defs/LabelingJobSnsDataSource"
        }
      }
    },
    "LabelingJobInputConfig": {
      "type": "object",
      "properties": {
        "DataSource": {
          "$ref": "#/$defs/LabelingJobDataSource"
        },
        "DataAttributes": {
          "$ref": "#/$defs/LabelingJobDataAttributes"
        }
      },
      "required": [
        "DataSource"
      ]
    },
    "LabelingJobOutput": {
      "type": "object",
      "properties": {
        "OutputDatasetS3Uri": {
          "type": "string",
          "description": "The Amazon S3 bucket location of the manifest file for labeled data."
        },
        "FinalActiveLearningModelArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) for the most recent SageMaker model trained as part of automated data labeling."
        }
      },
      "required": [
        "OutputDatasetS3Uri"
      ]
    },
    "LabelingJobOutputConfig": {
      "type": "object",
      "properties": {
        "S3OutputPath": {
          "type": "string",
          "description": "The Amazon S3 location to write output data."
        },
        "KmsKeyId": {
          "type": "string",
          "description": "The Amazon Web Services Key Management Service ID of the key used to encrypt the output data, if any. If you provide your own KMS key ID, you must add the required permissions to your KMS key described in Encrypt Output Data and Storage Volume with Amazon Web Services KMS. If you don't provide a KMS key ID, Amazon SageMaker uses the default Amazon Web Services KMS key for Amazon S3 for your role's account to encrypt your output data. If you use a bucket policy with an s3:PutObject permission that only allows objects with server-side encryption, set the condition key of s3:x-amz-server-side-enc"
        },
        "SnsTopicArn": {
          "type": "string",
          "description": "An Amazon Simple Notification Service (Amazon SNS) output topic ARN. Provide a SnsTopicArn if you want to do real time chaining to another streaming job and receive an Amazon SNS notifications each time a data object is submitted by a worker. If you provide an SnsTopicArn in OutputConfig, when workers complete labeling tasks, Ground Truth will send labeling task output data to the SNS output topic you specify here. To learn more, see Receive Output Data from a Streaming Labeling Job."
        }
      },
      "required": [
        "S3OutputPath"
      ]
    },
    "LabelingJobResourceConfig": {
      "type": "object",
      "properties": {
        "VolumeKmsKeyId": {
          "type": "string",
          "description": "The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the training and inference jobs used for automated data labeling. You can only specify a VolumeKmsKeyId when you create a labeling job with automated data labeling enabled using the API operation CreateLabelingJob. You cannot specify an Amazon Web Services KMS key to encrypt the storage volume used for automated data labeling model training and inference when you create a labeling job using the console. To "
        },
        "VpcConfig": {
          "$ref": "#/$defs/VpcConfig"
        }
      }
    },
    "LabelingJobS3DataSource": {
      "type": "object",
      "properties": {
        "ManifestS3Uri": {
          "type": "string",
          "description": "The Amazon S3 location of the manifest file that describes the input data objects. The input manifest file referenced in ManifestS3Uri must contain one of the following keys: source-ref or source. The value of the keys are interpreted as follows: source-ref: The source of the object is the Amazon S3 object specified in the value. Use this value when the object is a binary object, such as an image. source: The source of the object is the value. Use this value when the object is a text value. If you are a new user of Ground Truth, it is recommended you review Use an Input Manifest File in the Am"
        }
      },
      "required": [
        "ManifestS3Uri"
      ]
    },
    "LabelingJobSnsDataSource": {
      "type": "object",
      "properties": {
        "SnsTopicArn": {
          "type": "string",
          "description": "The Amazon SNS input topic Amazon Resource Name (ARN). Specify the ARN of the input topic you will use to send new data objects to a streaming labeling job."
        }
      },
      "required": [
        "SnsTopicArn"
      ]
    },
    "LabelingJobStoppingConditions": {
      "type": "object",
      "properties": {
        "MaxHumanLabeledObjectCount": {
          "type": "integer",
          "description": "The maximum number of objects that can be labeled by human workers."
        },
        "MaxPercentageOfInputDatasetLabeled": {
          "type": "integer",
          "description": "The maximum number of input data objects that should be labeled."
        }
      }
    },
    "PublicWorkforceTaskPrice": {
      "type": "object",
      "properties": {
        "AmountInUsd": {
          "$ref": "#/$defs/USD"
        }
      }
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The tag key. Tag keys must be unique per resource."
        },
        "Value": {
          "type": "string",
          "description": "The tag value."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    },
    "USD": {
      "type": "object",
      "properties": {
        "Dollars": {
          "type": "integer",
          "description": "The whole number of dollars in the amount."
        },
        "Cents": {
          "type": "integer",
          "description": "The fractional portion, in cents, of the amount."
        },
        "TenthFractionsOfACent": {
          "type": "integer",
          "description": "Fractions of a cent, in tenths."
        }
      }
    },
    "UiConfig": {
      "type": "object",
      "properties": {
        "UiTemplateS3Uri": {
          "type": "string",
          "description": "The Amazon S3 bucket location of the UI template, or worker task template. This is the template used to render the worker UI and tools for labeling job tasks. For more information about the contents of a UI template, see Creating Your Custom Labeling Task Template."
        },
        "HumanTaskUiArn": {
          "type": "string",
          "description": "The ARN of the worker task template used to render the worker UI and tools for labeling job tasks. Use this parameter when you are creating a labeling job for named entity recognition, 3D point cloud and video frame labeling jobs. Use your labeling job task type to select one of the following ARNs and use it with this parameter when you create a labeling job. Replace aws-region with the Amazon Web Services Region you are creating your labeling job in. For example, replace aws-region with us-west-1 if you create a labeling job in US West (N. California). Named Entity Recognition Use the followi"
        }
      }
    },
    "VpcConfig": {
      "type": "object",
      "properties": {
        "SecurityGroupIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field."
        },
        "Subnets": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones."
        }
      },
      "required": [
        "SecurityGroupIds",
        "Subnets"
      ]
    }
  }
}