:doc:`EMRContainers <../../emr-containers>` / Client / cancel_job_run

**************
cancel_job_run
**************



.. py:method:: EMRContainers.Client.cancel_job_run(**kwargs)

  

  Cancels a job run. A job run is a unit of work, such as a Spark jar, PySpark script, or SparkSQL query, that you submit to Amazon EMR on EKS.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/emr-containers-2020-10-01/CancelJobRun>`_  


  **Request Syntax**
  ::

    response = client.cancel_job_run(
        id='string',
        virtualClusterId='string'
    )
    
  :type id: string
  :param id: **[REQUIRED]** 

    The ID of the job run to cancel.

    

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

    The ID of the virtual cluster for which the job run will be canceled.

    

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

    
    ::

      {
          'id': 'string',
          'virtualClusterId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **id** *(string) --* 

        The output contains the ID of the cancelled job run.

        
      

      - **virtualClusterId** *(string) --* 

        The output contains the virtual cluster ID for which the job run is cancelled.

        
  
  **Exceptions**
  
  *   :py:class:`EMRContainers.Client.exceptions.ValidationException`

  
  *   :py:class:`EMRContainers.Client.exceptions.InternalServerException`

  