:doc:`LakeFormation <../../lakeformation>` / Client / get_work_unit_results

*********************
get_work_unit_results
*********************



.. py:method:: LakeFormation.Client.get_work_unit_results(**kwargs)

  

  Returns the work units resulting from the query. Work units can be executed in any order and in parallel.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/GetWorkUnitResults>`_  


  **Request Syntax**
  ::

    response = client.get_work_unit_results(
        QueryId='string',
        WorkUnitId=123,
        WorkUnitToken='string'
    )
    
  :type QueryId: string
  :param QueryId: **[REQUIRED]** 

    The ID of the plan query operation for which to get results.

    

  
  :type WorkUnitId: integer
  :param WorkUnitId: **[REQUIRED]** 

    The work unit ID for which to get results. Value generated by enumerating ``WorkUnitIdMin`` to ``WorkUnitIdMax`` (inclusive) from the ``WorkUnitRange`` in the output of ``GetWorkUnits``.

    

  
  :type WorkUnitToken: string
  :param WorkUnitToken: **[REQUIRED]** 

    A work token used to query the execution service. Token output from ``GetWorkUnits``.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'ResultStream': StreamingBody()
      }
      
    **Response Structure**

    

    - *(dict) --* 

      A structure for the output.

      
      

      - **ResultStream** (:class:`.StreamingBody`) -- 

        Rows returned from the ``GetWorkUnitResults`` operation as a stream of Apache Arrow v1.0 messages.

        
  
  **Exceptions**
  
  *   :py:class:`LakeFormation.Client.exceptions.InternalServiceException`

  
  *   :py:class:`LakeFormation.Client.exceptions.InvalidInputException`

  
  *   :py:class:`LakeFormation.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`LakeFormation.Client.exceptions.ExpiredException`

  
  *   :py:class:`LakeFormation.Client.exceptions.ThrottledException`

  