Lambda Function Input

Function input formats vary based on whether it’s a trigger or an action, see the corresponding sections for details:

Lambda Function Output

{
    "data": {        
        // data retrieved by trigger or method
    },
    "meta": {
        // metadata that will be saved for the given trigger_id 
    },
    "stats": {
        // lambda execution summary
    }
}
  • data can contain either an object, an array of objects, or a link to JSON array/object stored on Amazon S3, for example:

    "data": "s3://apination-intermediate-data-stg/path/to/json"
    
  • meta is used only for triggers (when trigger_id provided in request). If it’s not empty, the object will be saved for a given trigger_id and provided back in trigger input upon next trigger execution.
  • stats are used to report lambda execution summary and create a related log record. See Connector Logging for details

Standard Data Types

Connector must operate with standard data types (expect them on input and produce on output):

// Date: ISO 8601 with timezone specified (https://www.w3.org/TR/NOTE-datetime)
"date": "1994-11-05T13:15:30Z",


// Numeric: should not be quoted
"number": 123,


// Money: should be numeric without any currency signs or delimiters
"money": 10000.5,   // $10,000.50


// Percent: should be numeric, where 1 represents 100%
"percent": 0.75,    // 75%


// Boolean: should not be quoted, true or false
"boolean": true