You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2017/10/03 15:21:16 UTC

[2/5] camel git commit: CAMEL-11832: Add support for Lambda

http://git-wip-us.apache.org/repos/asf/camel/blob/fdc75e57/components/camel-aws/src/test/resources/org/apache/camel/component/aws/lambda/function/node/GetHelloWithName.js
----------------------------------------------------------------------
diff --git a/components/camel-aws/src/test/resources/org/apache/camel/component/aws/lambda/function/node/GetHelloWithName.js b/components/camel-aws/src/test/resources/org/apache/camel/component/aws/lambda/function/node/GetHelloWithName.js
new file mode 100644
index 0000000..5d10df2
--- /dev/null
+++ b/components/camel-aws/src/test/resources/org/apache/camel/component/aws/lambda/function/node/GetHelloWithName.js
@@ -0,0 +1,5 @@
+'use strict';
+exports.handler = function(event, context, callback) {
+	var name = (event.name === undefined ? 'No-Name' : event.name);
+	callback(null, {"Hello":name});
+}

http://git-wip-us.apache.org/repos/asf/camel/blob/fdc75e57/components/camel-aws/src/test/resources/org/apache/camel/component/aws/lambda/function/node/GetHelloWithName.zip
----------------------------------------------------------------------
diff --git a/components/camel-aws/src/test/resources/org/apache/camel/component/aws/lambda/function/node/GetHelloWithName.zip b/components/camel-aws/src/test/resources/org/apache/camel/component/aws/lambda/function/node/GetHelloWithName.zip
new file mode 100644
index 0000000..e9991f8
Binary files /dev/null and b/components/camel-aws/src/test/resources/org/apache/camel/component/aws/lambda/function/node/GetHelloWithName.zip differ