Skip to content

Commit 8fb55bb

Browse files
committed
fix issue found in integration testing
1 parent ffcb381 commit 8fb55bb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lambda/ses_bounce_handler/handler.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,9 @@ def lambda_handler(event, context):
294294
sns_message = record['Sns']['Message']
295295
message = json.loads(sns_message)
296296

297-
notification_type = message.get('notificationType')
297+
# SES Configuration Set Event Destinations use 'eventType'
298+
# Direct SES notifications use 'notificationType'
299+
notification_type = message.get('eventType') or message.get('notificationType')
298300

299301
print(f"Processing {notification_type} notification")
300302

0 commit comments

Comments
 (0)