Global outage event
If you're experiencing issues with your AWS services, then please refer to the AWS Health Dashboard. You can find the overall status of ongoing outages, the health of AWS services, and the latest updates from AWS engineers.
【以下的问题经过翻译处理】 我需要在由SQS触发的Lambda(Node.js脚本)中获取消息“VisibilityTimeout”的value,获取后,我便可以修改这个值,以便将消息保留在队列中以供下一次处理更长的时间。或者,如何通过编程方式获取队列本身的“VisibilityTimeout”值?
【以下的回答经过翻译处理】 通常情况下,如果你直接调用get_messages,可以获取VisibilityTimeout,但当使用Lambda调用时,Lambda服务会代替你的代码调用get_messages,貌似不会获取到这个字段。 您可以调用get_queue_attributes来获取队列上定义的VisibilityTimeout,但请记住,如果生产者在发布消息的时候指定了该消息的VisibilityTimeout,会覆盖队列的配置。
您未登录。 登录 发布回答。
一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。