Features
| Pricing | Documentation | Contact | Blog
Service Name: | Lambda |
ARN Format: | {region}:{account}:function:{name and qualifier} |
Style: | Request/Response |
Actions (required Permissions): |
lambda:InvokeFunction
|
Payload Format: | JSON object with array of request packet objects |
Using an AWS Lambda function as a destination allows great flexiblility and capability, and is a great option when generating replies to inbound packets is necessary (StepFunctions is another). Lambda a good choice for implementing protocols with request/response semantics and provides a familiar development experience.
Proxylity's integration with Lambda uses the lambda:InvokeFunction
API to deliver batches packets
to your function. Destination functions can be implemented in any language supported by Lambda, including
Node.js, Python, Java, Go and .NET.
The payload provided to the Lambda function is a JSON object with a property Messages
containing an
array of request packet objects. The response from the function is used to
generate replies, and contains a Replies
property containing an array of one or more response
packet objects. Response packets are matched to the request packets using the Tag
property. If no
replies are needed or appropriate, return an empty array in Replies
.
An example Lambda function destination with replies can be found on GitHub in our examples repository.