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

******************************************
put_table_bucket_maintenance_configuration
******************************************



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

  

  Creates a new maintenance configuration or replaces an existing maintenance configuration for a table bucket. For more information, see `Amazon S3 table bucket maintenance <https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-table-buckets-maintenance.html>`__ in the *Amazon Simple Storage Service User Guide*.

    Permissions  

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

  

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


  **Request Syntax**
  ::

    response = client.put_table_bucket_maintenance_configuration(
        tableBucketARN='string',
        type='icebergUnreferencedFileRemoval',
        value={
            'status': 'enabled'|'disabled',
            'settings': {
                'icebergUnreferencedFileRemoval': {
                    'unreferencedDays': 123,
                    'nonCurrentDays': 123
                }
            }
        }
    )
    
  :type tableBucketARN: string
  :param tableBucketARN: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the table bucket associated with the maintenance configuration.

    

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

    The type of the maintenance configuration.

    

  
  :type value: dict
  :param value: **[REQUIRED]** 

    Defines the values of the maintenance configuration for the table bucket.

    

  
    - **status** *(string) --* 

      The status of the maintenance configuration.

      

    
    - **settings** *(dict) --* 

      Contains details about the settings of the maintenance configuration.

      .. note::    This is a Tagged Union structure. Only one of the     following top level keys can be set: ``icebergUnreferencedFileRemoval``. 

    
      - **icebergUnreferencedFileRemoval** *(dict) --* 

        The unreferenced file removal settings for the table bucket.

        

      
        - **unreferencedDays** *(integer) --* 

          The number of days an object has to be unreferenced before it is marked as non-current.

          

        
        - **nonCurrentDays** *(integer) --* 

          The number of days an object has to be non-current before it is deleted.

          

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

  