:doc:`ConfigService <../../config>` / Client / list_stored_queries

*******************
list_stored_queries
*******************



.. py:method:: ConfigService.Client.list_stored_queries(**kwargs)

  

  Lists the stored queries for a single Amazon Web Services account and a single Amazon Web Services Region. The default is 100.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/ListStoredQueries>`_  


  **Request Syntax**
  ::

    response = client.list_stored_queries(
        NextToken='string',
        MaxResults=123
    )
    
  :type NextToken: string
  :param NextToken: 

    The nextToken string returned in a previous request that you use to request the next page of results in a paginated response.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of results to be returned with a single call.

    

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

    
    ::

      {
          'StoredQueryMetadata': [
              {
                  'QueryId': 'string',
                  'QueryArn': 'string',
                  'QueryName': 'string',
                  'Description': 'string'
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **StoredQueryMetadata** *(list) --* 

        A list of ``StoredQueryMetadata`` objects.

        
        

        - *(dict) --* 

          Returns details of a specific query.

          
          

          - **QueryId** *(string) --* 

            The ID of the query.

            
          

          - **QueryArn** *(string) --* 

            Amazon Resource Name (ARN) of the query. For example, arn:partition:service:region:account-id:resource-type/resource-name/resource-id.

            
          

          - **QueryName** *(string) --* 

            The name of the query.

            
          

          - **Description** *(string) --* 

            A unique description for the query.

            
      
    
      

      - **NextToken** *(string) --* 

        If the previous paginated request didn't return all of the remaining results, the response object's ``NextToken`` parameter value is set to a token. To retrieve the next set of results, call this operation again and assign that token to the request object's ``NextToken`` parameter. If there are no remaining results, the previous response object's ``NextToken`` parameter is set to ``null``.

        
  
  **Exceptions**
  
  *   :py:class:`ConfigService.Client.exceptions.ValidationException`

  
  *   :py:class:`ConfigService.Client.exceptions.InvalidNextTokenException`

  