Class LambdaMessagingOptions
Configuration options for polling and processing messages from SQS.
public class LambdaMessagingOptions
- Inheritance
-
LambdaMessagingOptions
Fields
DEFAULT_MAX_NUMBER_OF_CONCURRENT_MESSAGES
The default value for the MaxNumberOfConcurrentMessages
public const int DEFAULT_MAX_NUMBER_OF_CONCURRENT_MESSAGES = 10
Field Value
Properties
DeleteMessagesWhenCompleted
If true when a message has been successfully processed the message is deleted from the SQS queue. When set to false the Lambda service will delete all messages after the Lambda function invocation. If the function throws an uncaught exception the Lambda invocation fails and no messages are deleted.
For Lambda functions that are configured for partial failure and return an Amazon.Lambda.SQSEvents.SQSEvent this property is ignored.
public bool DeleteMessagesWhenCompleted { get; set; }
Property Value
MaxNumberOfConcurrentMessages
The maximum number of messages from the SQS event batch to process concurrently.
public int MaxNumberOfConcurrentMessages { get; set; }
Property Value
Remarks
The default value is 10.
VisibilityTimeoutForBatchFailures
How many seconds to set the VisibilityTimeout value to on partial batch failures.
Only applies for to Lambda functions that are configured for partial failure and return an Amazon.Lambda.SQSEvents.SQSEvent.
public int? VisibilityTimeoutForBatchFailures { get; set; }
Property Value
- int?