{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-deadline-cloud/json-schema/amazon-deadline-cloud-search-workers-response-schema.json",
  "title": "SearchWorkersResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-deadline-cloud-search-api-openapi.yml#/components/schemas/SearchWorkersResponse",
  "type": "object",
  "properties": {
    "workers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/WorkerSearchSummary"
      },
      "description": "The workers for the search."
    },
    "nextItemOffset": {
      "type": "integer",
      "description": "The next item offset for the search results."
    },
    "totalResults": {
      "type": "integer",
      "description": "The total number of results in the search."
    }
  },
  "required": [
    "workers",
    "totalResults"
  ],
  "$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."
        }
      }
    },
    "WorkerSearchSummary": {
      "type": "object",
      "properties": {
        "fleetId": {
          "type": "string",
          "description": "The fleet ID."
        },
        "workerId": {
          "type": "string",
          "description": "The worker ID."
        },
        "status": {
          "type": "string",
          "enum": [
            "CREATED",
            "STARTED",
            "STOPPING",
            "STOPPED",
            "NOT_RESPONDING",
            "NOT_COMPATIBLE",
            "RUNNING",
            "IDLE"
          ],
          "description": "The status of the worker search."
        },
        "hostProperties": {
          "$ref": "#/$defs/HostPropertiesResponse"
        },
        "createdBy": {
          "type": "string",
          "description": "The user or system that created this resource."
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time the resource was created."
        },
        "updatedBy": {
          "type": "string",
          "description": "The user or system that updated this resource."
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time the resource was updated."
        }
      }
    }
  }
}