Skip to content

Commit 1353117

Browse files
atabrizianArash Tabrizianbmoffatt
authored
ValidationData field added to CognitoEventUserPoolsMigrateUserRequest (#351)
* ValidationData field added to CognitoEventUserPoolsMigrateUserRequest * Update cognito-event-userpools-migrateuser.json Co-authored-by: Arash Tabrizian <[email protected]> Co-authored-by: Bryan Moffatt <[email protected]>
1 parent e60bf50 commit 1353117

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

events/cognito.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ type CognitoEventUserPoolsPostAuthenticationResponse struct {
144144
// CognitoEventUserPoolsMigrateUserRequest contains the request portion of a MigrateUser event
145145
type CognitoEventUserPoolsMigrateUserRequest struct {
146146
Password string `json:"password"`
147+
ValidationData map[string]string `json:"validationData"`
147148
ClientMetadata map[string]string `json:"clientMetadata"`
148149
}
149150

events/testdata/cognito-event-userpools-migrateuser.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@
1010
},
1111
"request": {
1212
"password": "<password>",
13+
"validationData": {
14+
"exampleMetadataKey": "example metadata value"
15+
},
1316
"clientMetadata": {
1417
"exampleMetadataKey": "example metadata value"
15-
}
18+
}
1619
},
1720
"response": {
1821
"userAttributes": {
@@ -27,4 +30,4 @@
2730
],
2831
"forceAliasCreation": true
2932
}
30-
}
33+
}

0 commit comments

Comments
 (0)