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

******************************
update_table_metadata_location
******************************



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

  

  Updates the metadata location for a table. The metadata location of a table must be an S3 URI that begins with the table's warehouse location. The metadata location for an Apache Iceberg table must end with ``.metadata.json``, or if the metadata file is Gzip-compressed, ``.metadata.json.gz``.

    Permissions  

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

  

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


  **Request Syntax**
  ::

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

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

    

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

    The namespace of the table.

    

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

    The name of the table.

    

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

    The version token of the table.

    

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

    The new metadata location for the table.

    

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

    
    ::

      {
          'name': 'string',
          'tableARN': 'string',
          'namespace': [
              'string',
          ],
          'versionToken': 'string',
          'metadataLocation': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        The name of the table.

        
      

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

        The Amazon Resource Name (ARN) of the table.

        
      

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

        The namespace the table is associated with.

        
        

        - *(string) --* 
    
      

      - **versionToken** *(string) --* 

        The version token of the table.

        
      

      - **metadataLocation** *(string) --* 

        The metadata location of the table.

        
  
  **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`

  