:doc:`Athena <../../athena>` / Client / update_prepared_statement

*************************
update_prepared_statement
*************************



.. py:method:: Athena.Client.update_prepared_statement(**kwargs)

  

  Updates a prepared statement.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdatePreparedStatement>`_  


  **Request Syntax**
  ::

    response = client.update_prepared_statement(
        StatementName='string',
        WorkGroup='string',
        QueryStatement='string',
        Description='string'
    )
    
  :type StatementName: string
  :param StatementName: **[REQUIRED]** 

    The name of the prepared statement.

    

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

    The workgroup for the prepared statement.

    

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

    The query string for the prepared statement.

    

  
  :type Description: string
  :param Description: 

    The description of the prepared statement.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`Athena.Client.exceptions.InternalServerException`

  
  *   :py:class:`Athena.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`Athena.Client.exceptions.ResourceNotFoundException`

  