This is a 3 part question :
I understand that the message retention period for an SQS queue can be set to a maximum of 14 days. I could not find a definite answer to whether you can also decrease the period back to a lesser value.
Consider the queue (original retention period of 4 days) has following messages at the very moment I set the message retention period to 14 days :
a. 10 messages in queue
b. 2 messages in flight
How will this newly set retention period apply to these messages ? Do the 10 messages already in the queue still get deleted after 4 days or they will also be retained for 14 days ?
If the 2 messages in flight are returned to the queue (made visible again) will they be retained for 14 days from the time they were first received in the queue ?If the current retention period of the queue is 14 days, there is a message in the queue that has been there for 5 days. Now if I decrease the retention period to 4 days, what happens to this message ?