title: AWS SQS How can I reset a message's ReceiveCount
body: <p>For various reasons my consumer on AWS sometimes reads a few messages from an SQS queue and decides to put some of them back in the queue to be processed later.</p>
  <p>The way I do that is by setting their <code>VisibilityTimeout</code> to 0 which makes them immediately visible to other consumers. This is documented <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html#terminating-message-visibility-timeout" rel="nofollow noreferrer">here</a>.</p>
  <p>The problem is that after doing that a few times, the message's <code>ReceiveCount</code> reaches the <code>maxReceiveCount</code> which causes the message to be moved to the DLQ. I'm wondering if I can somehow reset the message's <code>ReceiveCount</code> to avoid that.</p>
  <p>The only option I can currently think of is to just send a copy of the message back to the beginning of the queue and deleting the original message.</p>