{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-workspaces/json-schema/amazon-workspaces-update-device-response-schema.json",
  "title": "UpdateDeviceResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-workspaces-devices-api-openapi.yml#/components/schemas/UpdateDeviceResponse",
  "type": "object",
  "properties": {
    "device": {
      "$ref": "#/$defs/DeviceSummary"
    }
  },
  "$defs": {
    "DeviceSummary": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The ID of the device."
        },
        "serialNumber": {
          "type": "string",
          "description": "The hardware serial number of the device."
        },
        "name": {
          "type": "string",
          "description": "The name of the device."
        },
        "model": {
          "type": "string",
          "description": "The model number of the device."
        },
        "environmentId": {
          "type": "string",
          "description": "The ID of the environment the device is associated with."
        },
        "status": {
          "type": "string",
          "enum": [
            "REGISTERED",
            "DEREGISTERING",
            "DEREGISTERED",
            "ARCHIVED"
          ],
          "description": "The status of the device."
        },
        "currentSoftwareSetId": {
          "type": "string",
          "description": "The ID of the software set currently installed on the device."
        },
        "desiredSoftwareSetId": {
          "type": "string",
          "description": "The ID of the software set which the device has been set to."
        },
        "pendingSoftwareSetId": {
          "type": "string",
          "description": "The ID of the software set that is pending to be installed on the device."
        },
        "softwareSetUpdateSchedule": {
          "type": "string",
          "enum": [
            "USE_MAINTENANCE_WINDOW",
            "APPLY_IMMEDIATELY"
          ],
          "description": "An option to define if software updates should be applied within a maintenance window."
        },
        "lastConnectedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of the most recent session on the device."
        },
        "lastPostureAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of the most recent check-in of the device."
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of when the device was created."
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of when the device was updated."
        },
        "arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the device."
        },
        "lastUserId": {
          "type": "string",
          "description": "The user ID of the most recent session on the device."
        }
      }
    }
  }
}