From 2544a2d51a42c606cb99b25451c46ed334f8b679 Mon Sep 17 00:00:00 2001 From: Rey Abolofia Date: Mon, 18 Dec 2023 11:21:40 -0800 Subject: [PATCH] Add missing required field SNSEntity.MessageAttributes. --- pkg/serverless/trigger/events/events.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkg/serverless/trigger/events/events.go b/pkg/serverless/trigger/events/events.go index 0056cb7503c76..2bf48358779c4 100644 --- a/pkg/serverless/trigger/events/events.go +++ b/pkg/serverless/trigger/events/events.go @@ -277,11 +277,12 @@ type SNSEventRecord struct { // SNSEntity mirrors events.SNSEntity type, removing unused fields. type SNSEntity struct { - MessageID string - Type string - TopicArn string - Timestamp time.Time - Subject string + MessageID string + Type string + TopicArn string + MessageAttributes map[string]interface{} + Timestamp time.Time + Subject string } // SQSEvent mirrors events.SQSEvent type, removing unused fields.