:doc:`Keyspaces <../../keyspaces>` / Client / list_tables

***********
list_tables
***********



.. py:method:: Keyspaces.Client.list_tables(**kwargs)

  

  The ``ListTables`` operation returns a list of tables for a specified keyspace.

   

  To read keyspace metadata using ``ListTables``, the IAM principal needs ``Select`` action permissions for the system keyspace.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/keyspaces-2022-02-10/ListTables>`_  


  **Request Syntax**
  ::

    response = client.list_tables(
        nextToken='string',
        maxResults=123,
        keyspaceName='string'
    )
    
  :type nextToken: string
  :param nextToken: 

    The pagination token. To resume pagination, provide the ``NextToken`` value as an argument of a subsequent API invocation.

    

  
  :type maxResults: integer
  :param maxResults: 

    The total number of tables to return in the output. If the total number of tables available is more than the value specified, a ``NextToken`` is provided in the output. To resume pagination, provide the ``NextToken`` value as an argument of a subsequent API invocation.

    

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

    The name of the keyspace.

    

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

    
    ::

      {
          'nextToken': 'string',
          'tables': [
              {
                  'keyspaceName': 'string',
                  'tableName': 'string',
                  'resourceArn': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **nextToken** *(string) --* 

        A token to specify where to start paginating. This is the ``NextToken`` from a previously truncated response.

        
      

      - **tables** *(list) --* 

        A list of tables.

        
        

        - *(dict) --* 

          Returns the name of the specified table, the keyspace it is stored in, and the unique identifier in the format of an Amazon Resource Name (ARN).

          
          

          - **keyspaceName** *(string) --* 

            The name of the keyspace that the table is stored in.

            
          

          - **tableName** *(string) --* 

            The name of the table.

            
          

          - **resourceArn** *(string) --* 

            The unique identifier of the table in the format of an Amazon Resource Name (ARN).

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

  
  *   :py:class:`Keyspaces.Client.exceptions.ServiceQuotaExceededException`

  
  *   :py:class:`Keyspaces.Client.exceptions.InternalServerException`

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

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

  