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

****************
cancel_statement
****************



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

  

  Cancels the statement.

  

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


  **Request Syntax**
  ::

    response = client.cancel_statement(
        SessionId='string',
        Id=123,
        RequestOrigin='string'
    )
    
  :type SessionId: string
  :param SessionId: **[REQUIRED]** 

    The Session ID of the statement to be cancelled.

    

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

    The ID of the statement to be cancelled.

    

  
  :type RequestOrigin: string
  :param RequestOrigin: 

    The origin of the request to cancel the statement.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`Glue.Client.exceptions.AccessDeniedException`

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

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

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

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

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

  