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 README.MD file contains an example about the use of SimpleLambdaHandler receiving an Amazon SQS event
import AWSLambdaRuntime
import AWSLambdaEvents
@mainstructMyLambda:SimpleLambdaHandler{
// In this example we are receiving a SQS Event, with no response (Void).
func handle(_ event:SQS.Event, context:LambdaContext)asyncthrows->Void{...}}
There's no SQS.Event type available in the AWSLambdaEvents package, It seems that the expected type is SQSEvent
import AWSLambdaRuntime
import AWSLambdaEvents
@mainstructMyLambda:SimpleLambdaHandler{
// In this example we are receiving a SQS Event, with no response (Void).
func handle(_ event:SQSEvent, context:LambdaContext)asyncthrows{...}}
Also removed the returning Void following the Apple style guide, but I understand that is presented due to educational purpose.
The text was updated successfully, but these errors were encountered:
The README.MD file contains an example about the use of
SimpleLambdaHandler
receiving an Amazon SQS eventThere's no
SQS.Event
type available in theAWSLambdaEvents
package, It seems that the expected type isSQSEvent
Also removed the returning
Void
following the Apple style guide, but I understand that is presented due to educational purpose.The text was updated successfully, but these errors were encountered: