羊腿
用于创建/调用 JavaScript 函数作为 AWS Lambda 函数的节点模块
例子
var Lambleg = require ( 'lambleg' ) ;
var lambleg = new Lambleg ( {
region : 'us-east-1' ,
Role : 'arn:aws:iam::123456789012:role/lambda_exec_role' ,
QueueUrl : 'https://sqs.ap-northeast-1.amazonaws.com/123456789012/myqueue'
} ) ;
var lambda_func = lambleg . lambda ( function ( args , callback ) {
// Running on AWS Lambda
console . log (
1