Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion events/cognito.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,10 @@ type CognitoEventUserPoolsCustomMessageRequest struct {
UserAttributes map[string]interface{} `json:"userAttributes"`
CodeParameter string `json:"codeParameter"`
UsernameParameter string `json:"usernameParameter"`
ClientMetadata map[string]string `json:"clientMetadata"`
// LinkParameter is the placeholder for the verification link in email messages.
// It is present when TriggerSource is CustomMessage_VerifyUserAttribute or CustomMessage_AdminCreateUser.
LinkParameter string `json:"linkParameter,omitempty"`
ClientMetadata map[string]string `json:"clientMetadata"`
}

// CognitoEventUserPoolsCustomMessageResponse contains the response portion of a CustomMessage event
Expand Down
1 change: 1 addition & 0 deletions events/testdata/cognito-event-userpools-custommessage.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
},
"codeParameter": "####",
"usernameParameter": "{username}",
"linkParameter": "https://example.com/verify?token=abc123",
"clientMetadata": {
"exampleMetadataKey": "example metadata value"
}
Expand Down
Loading