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

******************
update_named_query
******************



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

  

  Updates a  NamedQuery object. The database or workgroup cannot be updated.

  

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


  **Request Syntax**
  ::

    response = client.update_named_query(
        NamedQueryId='string',
        Name='string',
        Description='string',
        QueryString='string'
    )
    
  :type NamedQueryId: string
  :param NamedQueryId: **[REQUIRED]** 

    The unique identifier (UUID) of the query.

    

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

    The name of the query.

    

  
  :type Description: string
  :param Description: 

    The query description.

    

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

    The contents of the query with all query statements.

    

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

    
    ::

      {}
      
    **Response Structure**

    

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

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

  