Skip to content
Merged
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
1 change: 1 addition & 0 deletions events/cognito.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ type CognitoEventUserPoolsPostAuthenticationResponse struct {
// CognitoEventUserPoolsMigrateUserRequest contains the request portion of a MigrateUser event
type CognitoEventUserPoolsMigrateUserRequest struct {
Password string `json:"password"`
ValidationData map[string]string `json:"validationData"`
ClientMetadata map[string]string `json:"clientMetadata"`
}

Expand Down
7 changes: 5 additions & 2 deletions events/testdata/cognito-event-userpools-migrateuser.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@
},
"request": {
"password": "<password>",
"validationData": {
"exampleMetadataKey": "example metadata value"
},
"clientMetadata": {
"exampleMetadataKey": "example metadata value"
}
}
},
"response": {
"userAttributes": {
Expand All @@ -27,4 +30,4 @@
],
"forceAliasCreation": true
}
}
}