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
This package contains classes that can be used as input types for Lambda functions that process Amazon Simple Queue Service (Amazon SQS) events.
4
+
5
+
# Sample Function
6
+
7
+
Below is a sample class and Lambda function that illustrates how an SQSEvent can be used. The function logs a summary of the events it received, including the event source, the timestamp, and the message of each event. (Note that by default anything written to Console will be logged as CloudWatch Logs events.)
8
+
9
+
```csharp
10
+
publicclassFunction
11
+
{
12
+
publicstringHandler(SQSEventsqsEvent)
13
+
{
14
+
foreach (varrecordinsqsEvent.Records)
15
+
{
16
+
Console.WriteLine($"[{record.EventSource}] Body = {record.Body}");
0 commit comments