:doc:`Glue <../../glue>` / Client / batch_stop_job_run

******************
batch_stop_job_run
******************



.. py:method:: Glue.Client.batch_stop_job_run(**kwargs)

  

  Stops one or more job runs for a specified job definition.

  

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


  **Request Syntax**
  ::

    response = client.batch_stop_job_run(
        JobName='string',
        JobRunIds=[
            'string',
        ]
    )
    
  :type JobName: string
  :param JobName: **[REQUIRED]** 

    The name of the job definition for which to stop job runs.

    

  
  :type JobRunIds: list
  :param JobRunIds: **[REQUIRED]** 

    A list of the ``JobRunIds`` that should be stopped for that job definition.

    

  
    - *(string) --* 

    

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

    
    ::

      {
          'SuccessfulSubmissions': [
              {
                  'JobName': 'string',
                  'JobRunId': 'string'
              },
          ],
          'Errors': [
              {
                  'JobName': 'string',
                  'JobRunId': 'string',
                  'ErrorDetail': {
                      'ErrorCode': 'string',
                      'ErrorMessage': 'string'
                  }
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **SuccessfulSubmissions** *(list) --* 

        A list of the JobRuns that were successfully submitted for stopping.

        
        

        - *(dict) --* 

          Records a successful request to stop a specified ``JobRun``.

          
          

          - **JobName** *(string) --* 

            The name of the job definition used in the job run that was stopped.

            
          

          - **JobRunId** *(string) --* 

            The ``JobRunId`` of the job run that was stopped.

            
      
    
      

      - **Errors** *(list) --* 

        A list of the errors that were encountered in trying to stop ``JobRuns``, including the ``JobRunId`` for which each error was encountered and details about the error.

        
        

        - *(dict) --* 

          Records an error that occurred when attempting to stop a specified job run.

          
          

          - **JobName** *(string) --* 

            The name of the job definition that is used in the job run in question.

            
          

          - **JobRunId** *(string) --* 

            The ``JobRunId`` of the job run in question.

            
          

          - **ErrorDetail** *(dict) --* 

            Specifies details about the error that was encountered.

            
            

            - **ErrorCode** *(string) --* 

              The code associated with this error.

              
            

            - **ErrorMessage** *(string) --* 

              A message describing the error.

              
        
      
    
  
  **Exceptions**
  
  *   :py:class:`Glue.Client.exceptions.InvalidInputException`

  
  *   :py:class:`Glue.Client.exceptions.InternalServiceException`

  
  *   :py:class:`Glue.Client.exceptions.OperationTimeoutException`

  