@sync_performer
def perform_create_cloudfront_invalidation(dispatcher, intent):
 cf = boto.connect_cloudfront()
 distribution = [dist for dist in cf.get_all_distributions() if (intent.cname in dist.cnames)][0]
 cf.create_invalidation_request(distribution.id, intent.paths)

@ sync_performer def perform_create_cloudfront_invalidation ( dispatcher , intent ) : cf = boto . connect_cloudfront ( ) distribution = [ dist for dist in cf . get_all_distributions ( ) if ( intent . cname in dist . cnames ) ] [ 0 ] cf . create_invalidation_request ( distribution . id , intent . paths )
see :class:createcloudfrontinvalidation .