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'
)
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.
{
'status': 'string',
'createTime': datetime(2015, 1, 1)
}
Response Structure
The status of the last cache reset.
The timestamp of the last cache reset (e.g., 1479734909.17 ) in Unix time format.
Exceptions
Lightsail.Client.exceptions.ServiceExceptionLightsail.Client.exceptions.InvalidInputExceptionLightsail.Client.exceptions.NotFoundExceptionLightsail.Client.exceptions.OperationFailureExceptionLightsail.Client.exceptions.AccessDeniedExceptionLightsail.Client.exceptions.UnauthenticatedException