:doc:`S3Tables <../../s3tables>` / Client / list_tables

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



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

  

  List tables in the given table bucket. For more information, see `S3 Tables <https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-tables.html>`__ in the *Amazon Simple Storage Service User Guide*.

    Permissions  

  You must have the ``s3tables:ListTables`` permission to use this operation.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/s3tables-2018-05-10/ListTables>`_  


  **Request Syntax**
  ::

    response = client.list_tables(
        tableBucketARN='string',
        namespace='string',
        prefix='string',
        continuationToken='string',
        maxTables=123
    )
    
  :type tableBucketARN: string
  :param tableBucketARN: **[REQUIRED]** 

    The Amazon resource Name (ARN) of the table bucket.

    

  
  :type namespace: string
  :param namespace: 

    The namespace of the tables.

    

  
  :type prefix: string
  :param prefix: 

    The prefix of the tables.

    

  
  :type continuationToken: string
  :param continuationToken: 

    ``ContinuationToken`` indicates to Amazon S3 that the list is being continued on this bucket with a token. ``ContinuationToken`` is obfuscated and is not a real key. You can use this ``ContinuationToken`` for pagination of the list results.

    

  
  :type maxTables: integer
  :param maxTables: 

    The maximum number of tables to return.

    

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

    
    ::

      {
          'tables': [
              {
                  'namespace': [
                      'string',
                  ],
                  'name': 'string',
                  'type': 'customer'|'aws',
                  'tableARN': 'string',
                  'createdAt': datetime(2015, 1, 1),
                  'modifiedAt': datetime(2015, 1, 1),
                  'managedByService': 'string',
                  'namespaceId': 'string',
                  'tableBucketId': 'string'
              },
          ],
          'continuationToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        A list of tables.

        
        

        - *(dict) --* 

          Contains details about a table.

          
          

          - **namespace** *(list) --* 

            The name of the namespace.

            
            

            - *(string) --* 
        
          

          - **name** *(string) --* 

            The name of the table.

            
          

          - **type** *(string) --* 

            The type of the table.

            
          

          - **tableARN** *(string) --* 

            The Amazon Resource Name (ARN) of the table.

            
          

          - **createdAt** *(datetime) --* 

            The date and time the table was created at.

            
          

          - **modifiedAt** *(datetime) --* 

            The date and time the table was last modified at.

            
          

          - **managedByService** *(string) --* 

            The Amazon Web Services service managing this table, if applicable. For example, a replicated table is managed by the S3 Tables replication service.

            
          

          - **namespaceId** *(string) --* 

            The unique identifier for the namespace that contains this table.

            
          

          - **tableBucketId** *(string) --* 

            The unique identifier for the table bucket that contains this table.

            
      
    
      

      - **continuationToken** *(string) --* 

        You can use this ``ContinuationToken`` for pagination of the list results.

        
  
  **Exceptions**
  
  *   :py:class:`S3Tables.Client.exceptions.InternalServerErrorException`

  
  *   :py:class:`S3Tables.Client.exceptions.ForbiddenException`

  
  *   :py:class:`S3Tables.Client.exceptions.NotFoundException`

  
  *   :py:class:`S3Tables.Client.exceptions.TooManyRequestsException`

  
  *   :py:class:`S3Tables.Client.exceptions.ConflictException`

  
  *   :py:class:`S3Tables.Client.exceptions.BadRequestException`

  