Writing Nginx module is more difficult than lua-resty module. If the amqp protocol is not complicated, it is better to write a lua-resty lib.
And I think the c amqp lib could not be used directly in nginx moudle, because of nginx event mechenism. You might to modify network part of the amqp client, and use nginx upstream. But in lua, you need not to care about that.