module Aws::CloudFront::Signer

def canned_policy(resource, expires)

create canned policy that used for signing
def canned_policy(resource, expires)
  json_hash = {
    'Statement' => [
      'Resource' => resource,
        'Condition' => {
          'DateLessThan' => {'AWS:EpochTime' => expires}
        }
    ]
  }
  JSON.dump(json_hash)
end