:doc:`Braket <../../braket>` / Client / cancel_job

**********
cancel_job
**********



.. py:method:: Braket.Client.cancel_job(**kwargs)

  

  Cancels an Amazon Braket hybrid job.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelJob>`_  


  **Request Syntax**
  ::

    response = client.cancel_job(
        jobArn='string'
    )
    
  :type jobArn: string
  :param jobArn: **[REQUIRED]** 

    The ARN of the Amazon Braket hybrid job to cancel.

    

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

    
    ::

      {
          'jobArn': 'string',
          'cancellationStatus': 'CANCELLING'|'CANCELLED'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **jobArn** *(string) --* 

        The ARN of the Amazon Braket job.

        
      

      - **cancellationStatus** *(string) --* 

        The status of the hybrid job.

        
  
  **Exceptions**
  
  *   :py:class:`Braket.Client.exceptions.ResourceNotFoundException`

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

  
  *   :py:class:`Braket.Client.exceptions.ConflictException`

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

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

  
  *   :py:class:`Braket.Client.exceptions.ValidationException`

  