Interface ILambdaMessaging
This interface provides the functionality to process SQS messages in a Lambda function. This interface is what Lambda functions must retrieve from the IServiceProvider and invoke one of the process methods passing the Amazon.Lambda.SQSEvents.SQSEvent and Amazon.Lambda.Core.ILambdaContext.
public interface ILambdaMessaging
Methods
ProcessLambdaEventAsync(SQSEvent, ILambdaContext)
Initiates processing of SQS messages to the Lambda function. All messages that are successfully processed will be deleted from the SQS queue. Use this method when your SQS event source mapping is not configured to use partial batch responses.
Task ProcessLambdaEventAsync(SQSEvent sqsEvent, ILambdaContext lambdaContext)
Parameters
sqsEvent
SQSEventThe Amazon.Lambda.SQSEvents.SQSEvent object that contains the underlying SQS messages that will be processed.
lambdaContext
ILambdaContextThe ILambdaContext for the function invocation.
Returns
ProcessLambdaEventWithBatchResponseAsync(SQSEvent, ILambdaContext)
Initiates processing of SQS messages to the Lambda function. All messages that are failed to process will be included as part of Amazon.Lambda.SQSEvents.SQSBatchResponse. Use this method when your SQS event source mapping is configured to use partial batch responses.
Task<SQSBatchResponse> ProcessLambdaEventWithBatchResponseAsync(SQSEvent sqsEvent, ILambdaContext lambdaContext)
Parameters
sqsEvent
SQSEventThe Amazon.Lambda.SQSEvents.SQSEvent object that contains the underlying SQS messages that will be processed.
lambdaContext
ILambdaContextThe ILambdaContext for the function invocation.
Returns
- Task<SQSBatchResponse>