{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-deadline-cloud/json-schema/amazon-deadline-cloud-get-worker-response-schema.json",
  "title": "GetWorkerResponse",
  "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/GetWorkerResponse",
  "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"
  ],
  "$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"
      ]
    }
  }
}