'Creates a canned policy string.'

@staticmethod
def _canned_policy(resource, expires):

    policy = ('{"Statement":[{"Resource":"%(resource)s","Condition":{"DateLessThan":{"AWS:EpochTime":%(expires)s}}}]}' % locals())
    return policy
