{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-location-service/json-schema/amazon-location-service-get-job-response-schema.json",
  "title": "GetJobResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-location-service-metadata-api-openapi.yml#/components/schemas/GetJobResponse",
  "type": "object",
  "properties": {
    "Action": {
      "type": "string",
      "description": "Action performed by the job."
    },
    "ActionOptions": {
      "$ref": "#/$defs/JobActionOptions"
    },
    "CreatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "Job creation time in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sss."
    },
    "EndedAt": {
      "type": "string",
      "format": "date-time",
      "description": "Job completion time in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sss. Only returned for jobs in a terminal status: Completed | Failed | Cancelled."
    },
    "Error": {
      "$ref": "#/$defs/JobError"
    },
    "ExecutionRoleArn": {
      "type": "string",
      "description": "IAM role used for permissions when running the job."
    },
    "InputOptions": {
      "$ref": "#/$defs/JobInputOptions"
    },
    "JobArn": {
      "type": "string",
      "description": "Amazon Resource Name (ARN) of the specified job."
    },
    "JobId": {
      "type": "string",
      "description": "Unique job identifier."
    },
    "Name": {
      "type": "string",
      "description": "Job name (if provided during creation)."
    },
    "OutputOptions": {
      "$ref": "#/$defs/JobOutputOptions"
    },
    "Status": {
      "type": "string",
      "description": "Current job status."
    },
    "UpdatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "Last update time in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sss."
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Tags and corresponding values associated with the specified job."
    }
  },
  "required": [
    "Action",
    "CreatedAt",
    "ExecutionRoleArn",
    "InputOptions",
    "JobArn",
    "JobId",
    "OutputOptions",
    "Status",
    "UpdatedAt"
  ],
  "$defs": {
    "JobActionOptions": {
      "type": "object",
      "properties": {
        "ValidateAddress": {
          "$ref": "#/$defs/ValidateAddressActionOptions"
        }
      }
    },
    "JobError": {
      "type": "object",
      "properties": {
        "Code": {
          "type": "string",
          "description": "Error code indicating the type of error that occurred."
        },
        "Messages": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Error messages providing details about the failure."
        }
      },
      "required": [
        "Code"
      ]
    },
    "JobInputOptions": {
      "type": "object",
      "properties": {
        "Location": {
          "type": "string",
          "description": "S3 ARN or URI where input files are stored. The Amazon S3 bucket must be created in the same Amazon Web Services region where you plan to run your job."
        },
        "Format": {
          "type": "string",
          "description": "Input data format. Currently only Parquet is supported. Input files have a limitation of 10gb per file, and 1gb per Parquet row-group within the file."
        }
      },
      "required": [
        "Location",
        "Format"
      ]
    },
    "JobOutputOptions": {
      "type": "object",
      "properties": {
        "Format": {
          "type": "string",
          "description": "Output data format. Currently only \"Parquet\" is supported."
        },
        "Location": {
          "type": "string",
          "description": "S3 ARN or URI where output files will be written. The Amazon S3 bucket must exist in the same Amazon Web Services region where you plan to run your job."
        }
      },
      "required": [
        "Format",
        "Location"
      ]
    },
    "ValidateAddressActionOptions": {
      "type": "object",
      "properties": {
        "AdditionalFeatures": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of optional additional parameters that can be requested for each result. Values: Position - Return the position coordinates of the address if available. CountrySpecificAttributes - Return additional information about the address specific to the country of origin."
        }
      }
    }
  }
}