:doc:`Lightsail <../../lightsail>` / Client / get_distribution_latest_cache_reset

***********************************
get_distribution_latest_cache_reset
***********************************



.. py:method:: Lightsail.Client.get_distribution_latest_cache_reset(**kwargs)

  

  Returns the timestamp and status of the last cache reset of a specific Amazon Lightsail content delivery network (CDN) distribution.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDistributionLatestCacheReset>`_  


  **Request Syntax**
  ::

    response = client.get_distribution_latest_cache_reset(
        distributionName='string'
    )
    
  :type distributionName: string
  :param distributionName: 

    The name of the distribution for which to return the timestamp of the last cache reset.

     

    Use the ``GetDistributions`` action to get a list of distribution names that you can specify.

     

    When omitted, the response includes the latest cache reset timestamp of all your distributions.

    

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

    
    ::

      {
          'status': 'string',
          'createTime': datetime(2015, 1, 1)
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        The status of the last cache reset.

        
      

      - **createTime** *(datetime) --* 

        The timestamp of the last cache reset ( ``1479734909.17``) in Unix time format.

        
  
  **Exceptions**
  
  *   :py:class:`Lightsail.Client.exceptions.ServiceException`

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

  
  *   :py:class:`Lightsail.Client.exceptions.NotFoundException`

  
  *   :py:class:`Lightsail.Client.exceptions.OperationFailureException`

  
  *   :py:class:`Lightsail.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`Lightsail.Client.exceptions.UnauthenticatedException`

  