def permission(id, props={})
      defaults = { action: "lambda:InvokeFunction" }
      props = defaults.merge(props)
      resource(id, "AWS::Lambda::Permission", props)
    end
def permission(id, props={})
      defaults = { action: "lambda:InvokeFunction" }
      props = defaults.merge(props)
      resource(id, "AWS::Lambda::Permission", props)
    end
Usage:

   permission(:my_permission, principal: "events.amazonaws.com")