get_distribution_latest_cache_reset

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

Request Syntax

response = client.get_distribution_latest_cache_reset(
    distributionName='string'
)
Parameters
distributionName (string) --

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.

Return type
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 (e.g., 1479734909.17 ) in Unix time format.

Exceptions

  • Lightsail.Client.exceptions.ServiceException
  • Lightsail.Client.exceptions.InvalidInputException
  • Lightsail.Client.exceptions.NotFoundException
  • Lightsail.Client.exceptions.OperationFailureException
  • Lightsail.Client.exceptions.AccessDeniedException
  • Lightsail.Client.exceptions.UnauthenticatedException