{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-deadline-cloud/json-schema/amazon-deadline-cloud-list-workers-response-schema.json",
  "title": "ListWorkersResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-deadline-cloud-workers-api-openapi.yml#/components/schemas/ListWorkersResponse",
  "type": "object",
  "properties": {
    "workers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/WorkerSummary"
      },
      "description": "The workers on the list."
    },
    "nextToken": {
      "type": "string",
      "description": "If Deadline Cloud returns nextToken, then there are more results available. The value of nextToken is a unique pagination token for each page. To retrieve the next page, call the operation again using the returned token. Keep all other arguments unchanged. If no results remain, then nextToken is set to null. Each pagination token expires after 24 hours. If you provide a token that isn't valid, then you receive an HTTP 400 ValidationException error."
    }
  },
  "required": [
    "workers"
  ],
  "$defs": {
    "HostPropertiesResponse": {
      "type": "object",
      "properties": {
        "ipAddresses": {
          "$ref": "#/$defs/IpAddresses"
        },
        "hostName": {
          "type": "string",
          "description": "The host name."
        },
        "ec2InstanceArn": {
          "type": "string",
          "description": "The ARN of the host EC2 instance."
        },
        "ec2InstanceType": {
          "type": "string",
          "description": "The instance type of the host EC2 instance."
        }
      }
    },
    "IpAddresses": {
      "type": "object",
      "properties": {
        "ipV4Addresses": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The IpV4 address of the network."
        },
        "ipV6Addresses": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The IpV6 address for the network and node component."
        }
      }
    },
    "LogConfiguration": {
      "type": "object",
      "properties": {
        "logDriver": {
          "type": "string",
          "description": "The log drivers for worker related logs."
        },
        "options": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The options for a log driver."
        },
        "parameters": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The parameters for the log configuration."
        },
        "error": {
          "type": "string",
          "description": "The log configuration error details."
        }
      },
      "required": [
        "logDriver"
      ]
    },
    "WorkerSummary": {
      "type": "object",
      "properties": {
        "farmId": {
          "type": "string",
          "description": "The farm ID."
        },
        "fleetId": {
          "type": "string",
          "description": "The fleet ID."
        },
        "workerId": {
          "type": "string",
          "description": "The worker ID."
        },
        "hostProperties": {
          "$ref": "#/$defs/HostPropertiesResponse"
        },
        "status": {
          "type": "string",
          "enum": [
            "CREATED",
            "STARTED",
            "STOPPING",
            "STOPPED",
            "NOT_RESPONDING",
            "NOT_COMPATIBLE",
            "RUNNING",
            "IDLE"
          ],
          "description": "The status of the worker."
        },
        "log": {
          "$ref": "#/$defs/LogConfiguration"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time the resource was created."
        },
        "createdBy": {
          "type": "string",
          "description": "The user or system that created this resource."
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time the resource was updated."
        },
        "updatedBy": {
          "type": "string",
          "description": "The user or system that updated this resource."
        }
      },
      "required": [
        "farmId",
        "fleetId",
        "workerId",
        "status",
        "createdAt",
        "createdBy"
      ]
    }
  }
}