One can add Lambda function that implements API through Cloud Logic to project like this.
cloudlogic: !com.amazonaws.mobilehub.v0.CloudLogic
components:
hello: !com.amazonaws.mobilehub.v0.API
attributes:
name: hello
requires-signin: true
paths:
/hello: !com.amazonaws.mobilehub.v0.Function
name: hello
codeFilename: uploads/hello-xxx.zip
handler: lambda.handler
enableCORS: true
runtime: nodejs6.10
environment: {}
But what about functions that has other triggers like updates in database, regular interval, etc. How these kind of functions can be added so that they integrated part of project? What is the syntax? Sure I can deploy functions separately, but I would be nice to deploy everything from same project file.
Lambda functions are not made for implementing API through Cloud Logic or similar specific things. Lambda functions can be used in many ways.
For triggers like doing some task on regular interval you can define crons. Read more about them here.
People can help you better if you explain what you want to achieve.