:doc:`LakeFormation <../../lakeformation>` / Client / update_table_objects

********************
update_table_objects
********************



.. py:method:: LakeFormation.Client.update_table_objects(**kwargs)

  

  Updates the manifest of Amazon S3 objects that make up the specified governed table.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/UpdateTableObjects>`_  


  **Request Syntax**
  ::

    response = client.update_table_objects(
        CatalogId='string',
        DatabaseName='string',
        TableName='string',
        TransactionId='string',
        WriteOperations=[
            {
                'AddObject': {
                    'Uri': 'string',
                    'ETag': 'string',
                    'Size': 123,
                    'PartitionValues': [
                        'string',
                    ]
                },
                'DeleteObject': {
                    'Uri': 'string',
                    'ETag': 'string',
                    'PartitionValues': [
                        'string',
                    ]
                }
            },
        ]
    )
    
  :type CatalogId: string
  :param CatalogId: 

    The catalog containing the governed table to update. Defaults to the caller’s account ID.

    

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

    The database containing the governed table to update.

    

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

    The governed table to update.

    

  
  :type TransactionId: string
  :param TransactionId: 

    The transaction at which to do the write.

    

  
  :type WriteOperations: list
  :param WriteOperations: **[REQUIRED]** 

    A list of ``WriteOperation`` objects that define an object to add to or delete from the manifest for a governed table.

    

  
    - *(dict) --* 

      Defines an object to add to or delete from a governed table.

      

    
      - **AddObject** *(dict) --* 

        A new object to add to the governed table.

        

      
        - **Uri** *(string) --* **[REQUIRED]** 

          The Amazon S3 location of the object.

          

        
        - **ETag** *(string) --* **[REQUIRED]** 

          The Amazon S3 ETag of the object. Returned by ``GetTableObjects`` for validation and used to identify changes to the underlying data.

          

        
        - **Size** *(integer) --* **[REQUIRED]** 

          The size of the Amazon S3 object in bytes.

          

        
        - **PartitionValues** *(list) --* 

          A list of partition values for the object. A value must be specified for each partition key associated with the table.

           

          The supported data types are integer, long, date(yyyy-MM-dd), timestamp(yyyy-MM-dd HH:mm:ssXXX or yyyy-MM-dd HH:mm:ss"), string and decimal.

          

        
          - *(string) --* 

          
      
      
      - **DeleteObject** *(dict) --* 

        An object to delete from the governed table.

        

      
        - **Uri** *(string) --* **[REQUIRED]** 

          The Amazon S3 location of the object to delete.

          

        
        - **ETag** *(string) --* 

          The Amazon S3 ETag of the object. Returned by ``GetTableObjects`` for validation and used to identify changes to the underlying data.

          

        
        - **PartitionValues** *(list) --* 

          A list of partition values for the object. A value must be specified for each partition key associated with the governed table.

          

        
          - *(string) --* 

          
      
      
    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`LakeFormation.Client.exceptions.InternalServiceException`

  
  *   :py:class:`LakeFormation.Client.exceptions.InvalidInputException`

  
  *   :py:class:`LakeFormation.Client.exceptions.OperationTimeoutException`

  
  *   :py:class:`LakeFormation.Client.exceptions.EntityNotFoundException`

  
  *   :py:class:`LakeFormation.Client.exceptions.TransactionCommittedException`

  
  *   :py:class:`LakeFormation.Client.exceptions.TransactionCanceledException`

  
  *   :py:class:`LakeFormation.Client.exceptions.TransactionCommitInProgressException`

  
  *   :py:class:`LakeFormation.Client.exceptions.ResourceNotReadyException`

  
  *   :py:class:`LakeFormation.Client.exceptions.ConcurrentModificationException`

  