{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-deadline-cloud/json-schema/amazon-deadline-cloud-update-worker-request-schema.json",
  "title": "UpdateWorkerRequest",
  "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/UpdateWorkerRequest",
  "type": "object",
  "properties": {
    "farmId": {
      "type": "string",
      "description": "The farm ID to update."
    },
    "fleetId": {
      "type": "string",
      "description": "The fleet ID to update."
    },
    "workerId": {
      "type": "string",
      "description": "The worker ID to update."
    },
    "status": {
      "type": "string",
      "enum": [
        "STARTED",
        "STOPPING",
        "STOPPED"
      ],
      "description": "The worker status to update."
    },
    "capabilities": {
      "$ref": "#/$defs/WorkerCapabilities"
    },
    "hostProperties": {
      "$ref": "#/$defs/HostPropertiesRequest"
    }
  },
  "required": [
    "farmId",
    "fleetId",
    "workerId"
  ],
  "$defs": {
    "HostPropertiesRequest": {
      "type": "object",
      "properties": {
        "ipAddresses": {
          "$ref": "#/$defs/IpAddresses"
        },
        "hostName": {
          "type": "string",
          "description": "The host name."
        }
      }
    },
    "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."
        }
      }
    },
    "WorkerAmountCapability": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the worker amount capability."
        },
        "value": {
          "type": "number",
          "description": "The value of the worker amount capability."
        }
      },
      "required": [
        "name",
        "value"
      ]
    },
    "WorkerAttributeCapability": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the worker attribute capability."
        },
        "values": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The values of the worker amount capability."
        }
      },
      "required": [
        "name",
        "values"
      ]
    },
    "WorkerCapabilities": {
      "type": "object",
      "properties": {
        "amounts": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/WorkerAmountCapability"
          },
          "description": "The worker capabilities amounts on a list of worker capabilities."
        },
        "attributes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/WorkerAttributeCapability"
          },
          "description": "The worker attribute capabilities in the list of attribute capabilities."
        }
      },
      "required": [
        "amounts",
        "attributes"
      ]
    }
  }
}