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

************
rename_table
************



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

  

  Renames a table or a namespace. 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:RenameTable`` permission to use this operation.

  

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


  **Request Syntax**
  ::

    response = client.rename_table(
        tableBucketARN='string',
        namespace='string',
        name='string',
        newNamespaceName='string',
        newName='string',
        versionToken='string'
    )
    
  :type tableBucketARN: string
  :param tableBucketARN: **[REQUIRED]** 

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

    

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

    The namespace associated with the table.

    

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

    The current name of the table.

    

  
  :type newNamespaceName: string
  :param newNamespaceName: 

    The new name for the namespace.

    

  
  :type newName: string
  :param newName: 

    The new name for the table.

    

  
  :type versionToken: string
  :param versionToken: 

    The version token of the table.

    

  
  
  :returns: None
  **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`

  