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

*************
run_statement
*************



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

  

  Executes the statement.

  

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


  **Request Syntax**
  ::

    response = client.run_statement(
        SessionId='string',
        Code='string',
        RequestOrigin='string'
    )
    
  :type SessionId: string
  :param SessionId: **[REQUIRED]** 

    The Session Id of the statement to be run.

    

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

    The statement code to be run.

    

  
  :type RequestOrigin: string
  :param RequestOrigin: 

    The origin of the request.

    

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

    
    ::

      {
          'Id': 123
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Id** *(integer) --* 

        Returns the Id of the statement that was run.

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

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

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

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

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

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

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

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

  