@@ -52,6 +52,14 @@ type CognitoEventUserPoolsPostAuthentication struct {
52
52
Response CognitoEventUserPoolsPostAuthenticationResponse `json:"response"`
53
53
}
54
54
55
+ // CognitoEventUserPoolsMigrateUser is sent by AWS Cognito User Pools when a user does not exist in the
56
+ // user pool at the time of sign-in with a password, or in the forgot-password flow.
57
+ type CognitoEventUserPoolsMigrateUser struct {
58
+ CognitoEventUserPoolsHeader
59
+ CognitoEventUserPoolsMigrateUserRequest `json:"request"`
60
+ CognitoEventUserPoolsMigrateUserResponse `json:"response"`
61
+ }
62
+
55
63
// CognitoEventUserPoolsCallerContext contains information about the caller
56
64
type CognitoEventUserPoolsCallerContext struct {
57
65
AWSSDKVersion string `json:"awsSdkVersion"`
@@ -111,6 +119,20 @@ type CognitoEventUserPoolsPostAuthenticationRequest struct {
111
119
type CognitoEventUserPoolsPostAuthenticationResponse struct {
112
120
}
113
121
122
+ // CognitoEventUserPoolsMigrateUserRequest contains the request portion of a MigrateUser event
123
+ type CognitoEventUserPoolsMigrateUserRequest struct {
124
+ Password string `json:"password"`
125
+ }
126
+
127
+ // CognitoEventUserPoolsMigrateUserResponse contains the response portion of a MigrateUser event
128
+ type CognitoEventUserPoolsMigrateUserResponse struct {
129
+ UserAttributes map [string ]string `json:"userAttributes"`
130
+ FinalUserStatus string `json:"finalUserStatus"`
131
+ MessageAction string `json:"messageAction"`
132
+ DesiredDeliveryMediums []string `json:"desiredDeliveryMediums"`
133
+ ForceAliasCreation bool `json:"forceAliasCreation"`
134
+ }
135
+
114
136
// ClaimsOverrideDetails allows lambda to add, supress or override claims in the token
115
137
type ClaimsOverrideDetails struct {
116
138
GroupOverrideDetails GroupConfiguration `json:"groupOverrideDetails"`
0 commit comments