You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The *records* parameter contains `SNSEventRecord[]`. An exampe event structure can be found [here](lib/event-examples/sns.json). For example you can parse now the [message attributes of the SNS](https://docs.aws.amazon.com/sns/latest/dg/sns-message-attributes.html) or reads the topic arn of SNS.
235
246
236
247
## SQS to Lambda Integrations
237
248
238
249
For handling calls in Lambdas initiated from AWS-SQS you can use the following code snippet:
Per s3 event there can be several records per event. The action methods are called one after the other record. The result of the action method is an array with objects insides.
343
363
@@ -347,6 +367,9 @@ Per default a status code 200 will be returned. This behavior can be overridden.
347
367
348
368
By providing a body property in the returned object you can modify the status code and response headers.
349
369
370
+
<details>
371
+
<summary>Response example</summary>
372
+
350
373
```js
351
374
return {
352
375
// Allow for custom status codes depending on execution.
@@ -365,6 +388,9 @@ return {
365
388
}
366
389
```
367
390
391
+
</details>
392
+
393
+
368
394
## Local developement
369
395
370
396
The best is to work with ```yarnlink```
@@ -380,7 +406,7 @@ Increase version in **package.json** (using [semantic version syntax](https://se
380
406
Thats all.
381
407
382
408
## Release History
383
-
* unreleased
409
+
* 0.8.3
384
410
* added records to the SQS (#43) and SNS (#44) action for further processing
385
411
* 0.8.2
386
412
* added support for Open API parameter definitions e.g.: /section/{id}
0 commit comments