Skip to content

Commit

Permalink
Add missing required field SNSEntity.MessageAttributes. (#21631)
Browse files Browse the repository at this point in the history
  • Loading branch information
purple4reina authored Dec 18, 2023
1 parent 2bbefc8 commit 04b6582
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pkg/serverless/trigger/events/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 04b6582

Please sign in to comment.