Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get current Visibility Timeout for a message

I'm pretty new to SQS and am sorry if I glossed over something obvious but is there a way to get the current visibility timeout for a message in SQS? I can see how to update the timeout visibility here. but I don't see any info on getting the current visibility timeout for a message (perhaps you can view it on receiving the message somehow).

My use-case is changing the visibility timeout based on the current visibility timeout for a given message. Is this possible?

(Note: I'm aware I can use the approximate received time to a similar effect and will go that route if getting the current visibility time is impossible)

like image 981
gwcoderguy Avatar asked Sep 01 '25 10:09

gwcoderguy


1 Answers

It looks like this is not possible.

Though the ApproximateReceiveCount is likely to suffice for my use-case at least.

like image 78
gwcoderguy Avatar answered Sep 03 '25 03:09

gwcoderguy