Skip to content

Commit

Permalink
feat: add custom attributes in pinpoint
Browse files Browse the repository at this point in the history
Pinpoint SMS provider supports arbitary params to be sent which can be
added to email/SMS delivery receipt event attributes.
  • Loading branch information
mr-karan committed Jan 31, 2024
1 parent 06364c8 commit 70e9388
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/providers/pinpoint/pinpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ func (p *PinpointSMS) Push(otp models.OTP, subject string, body []byte) error {
ChannelType: types.ChannelTypeSms,
},
},
Context: map[string]string{
"namespace": otp.Namespace,
},
MessageConfiguration: &types.DirectMessageConfiguration{
SMSMessage: &types.SMSMessage{
Body: aws.String(string(body)),
Expand Down

0 comments on commit 70e9388

Please sign in to comment.