diff --git a/events/ses.go b/events/ses.go index b665ce1e..793b448e 100644 --- a/events/ses.go +++ b/events/ses.go @@ -34,7 +34,7 @@ type SimpleEmailReceipt struct { SpamVerdict SimpleEmailVerdict `json:"spamVerdict"` DKIMVerdict SimpleEmailVerdict `json:"dkimVerdict"` DMARCVerdict SimpleEmailVerdict `json:"dmarcVerdict"` - DMARCPolicy SimpleEmailVerdict `json:"dmarcPolicy"` + DMARCPolicy string `json:"dmarcPolicy"` SPFVerdict SimpleEmailVerdict `json:"spfVerdict"` VirusVerdict SimpleEmailVerdict `json:"virusVerdict"` Action SimpleEmailReceiptAction `json:"action"` diff --git a/events/testdata/ses-event.json b/events/testdata/ses-event.json index 46baf6e4..3f24b5e3 100644 --- a/events/testdata/ses-event.json +++ b/events/testdata/ses-event.json @@ -80,9 +80,7 @@ "dmarcVerdict": { "status": "PASS" }, - "dmarcPolicy": { - "status": "REJECT" - }, + "dmarcPolicy": "reject", "processingTimeMillis": 574, "action": { "type": "Lambda",