This topic describes how to extend the retention period of a message in MNS.

To extend the retention period of the message, call the SetQueueAttributes operation to set the MessageRetentionPeriod parameter. The MessageRetentionPeriod parameter specifies the retention period of a message. After the retention period expires, the message is deleted from the queue. Unit: second. The default value of the Message RetentionPeriod parameter is 345,600 seconds (4 days). You can set this parameter to a value that ranges from 60 seconds (1 minute) to 604,800 seconds (7 days).