{
  "id": "aws/sqs-message-retention-period-exceeded",
  "signature": "An error occurred (InvalidParameterValue) when calling the SendMessage operation: Value for parameter MessageRetentionPeriod is not valid. Must be between 60 and 1209600 seconds",
  "signature_zh": "调用 SendMessage 操作时发生错误 (InvalidParameterValue)：参数 MessageRetentionPeriod 的值无效。必须在 60 到 1209600 秒之间",
  "regex": "Value for parameter MessageRetentionPeriod is not valid. Must be between 60 and 1209600 seconds",
  "domain": "aws",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The SQS queue's message retention period was set outside the allowed range (60 seconds to 14 days), causing send or update operations to fail.",
  "root_cause_type": "generic",
  "root_cause_zh": "SQS 队列的消息保留期被设置在允许范围（60 秒到 14 天）之外，导致发送或更新操作失败。",
  "versions": [
    {
      "version": "Amazon SQS API 2012-11-05",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "AWS SDK for Java 2.20.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Setting the retention period to exactly 60 seconds or 1209600 seconds may still fail if the queue already exists with a different value; the update might require a queue recreation.",
      "fail_rate": 0.3,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Trying to set the retention period via the console without refreshing the queue attributes might use a cached, invalid value from a previous configuration.",
      "fail_rate": 0.2,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Set the MessageRetentionPeriod to a valid value between 60 and 1209600 seconds. For example, use the AWS CLI: 'aws sqs set-queue-attributes --queue-url https://sqs.us-east-1.amazonaws.com/123456789012/MyQueue --attributes MessageRetentionPeriod=345600' (4 days).",
      "success_rate": 0.95,
      "how": "Set the MessageRetentionPeriod to a valid value between 60 and 1209600 seconds. For example, use the AWS CLI: 'aws sqs set-queue-attributes --queue-url https://sqs.us-east-1.amazonaws.com/123456789012/MyQueue --attributes MessageRetentionPeriod=345600' (4 days).",
      "condition": "",
      "sources": []
    },
    {
      "action": "If the queue was created with an invalid retention period, delete and recreate the queue with a valid value: 'aws sqs create-queue --queue-name MyQueue --attributes MessageRetentionPeriod=86400' (1 day).",
      "success_rate": 0.9,
      "how": "If the queue was created with an invalid retention period, delete and recreate the queue with a valid value: 'aws sqs create-queue --queue-name MyQueue --attributes MessageRetentionPeriod=86400' (1 day).",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "将 MessageRetentionPeriod 设置为 60 到 1209600 秒之间的有效值。例如，使用 AWS CLI：'aws sqs set-queue-attributes --queue-url https://sqs.us-east-1.amazonaws.com/123456789012/MyQueue --attributes MessageRetentionPeriod=345600'（4 天）。",
    "如果队列是使用无效的保留期创建的，请删除并重新创建具有有效值的队列：'aws sqs create-queue --queue-name MyQueue --attributes MessageRetentionPeriod=86400'（1 天）。"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_SetQueueAttributes.html",
  "official_doc_section": null,
  "error_code": "InvalidParameterValue",
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.92,
  "resolvable": "true",
  "first_seen": "2023-09-12",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}