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

********************************
get_table_maintenance_job_status
********************************



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

  

  Gets the status of a maintenance job for a table. For more information, see `S3 Tables maintenance <https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-maintenance.html>`__ in the *Amazon Simple Storage Service User Guide*.

    Permissions  

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

  

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


  **Request Syntax**
  ::

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

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

    

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

    The name of the namespace the table is associated with.

    

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

    The name of the table containing the maintenance job status you want to check.

    

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

    
    ::

      {
          'tableARN': 'string',
          'status': {
              'string': {
                  'status': 'Not_Yet_Run'|'Successful'|'Failed'|'Disabled',
                  'lastRunTimestamp': datetime(2015, 1, 1),
                  'failureMessage': 'string'
              }
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        The Amazon Resource Name (ARN) of the table.

        
      

      - **status** *(dict) --* 

        The status of the maintenance job.

        
        

        - *(string) --* 
          

          - *(dict) --* 

            Details about the status of a maintenance job.

            
            

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

              The status of the job.

              
            

            - **lastRunTimestamp** *(datetime) --* 

              The date and time that the maintenance job was last run.

              
            

            - **failureMessage** *(string) --* 

              The failure message of a failed job.

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

  