SNS: Add required deduplication_id parameter to PublishBatch (#6560)

This commit is contained in:
Christian Kreiling 2023-07-26 08:01:36 +10:00 committed by GitHub
parent 5fbb1391e9
commit fe6df96e34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1043,6 +1043,7 @@ class SNSBackend(BaseBackend):
subject=entry.get("Subject"),
message_attributes=entry.get("MessageAttributes", {}),
group_id=entry.get("MessageGroupId"),
deduplication_id=entry.get("MessageDeduplicationId"),
)
successful.append({"MessageId": message_id, "Id": entry["Id"]})
except Exception as e: