:doc:`IoT <../../iot>` / Client / get_job_document

****************
get_job_document
****************



.. py:method:: IoT.Client.get_job_document(**kwargs)

  

  Gets a job document.

   

  Requires permission to access the `GetJobDocument <https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions>`__ action.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iot-2015-05-28/GetJobDocument>`_  


  **Request Syntax**
  ::

    response = client.get_job_document(
        jobId='string',
        beforeSubstitution=True|False
    )
    
  :type jobId: string
  :param jobId: **[REQUIRED]** 

    The unique identifier you assigned to this job when it was created.

    

  
  :type beforeSubstitution: boolean
  :param beforeSubstitution: 

    Provides a view of the job document before and after the substitution parameters have been resolved with their exact values.

    

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

    
    ::

      {
          'document': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **document** *(string) --* 

        The job document content.

        
  
  **Exceptions**
  
  *   :py:class:`IoT.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`IoT.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`IoT.Client.exceptions.ThrottlingException`

  
  *   :py:class:`IoT.Client.exceptions.ServiceUnavailableException`

  