@@ -52,6 +52,14 @@ type CognitoEventUserPoolsPostAuthentication struct {
5252 Response CognitoEventUserPoolsPostAuthenticationResponse `json:"response"`
5353}
5454
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+
5563// CognitoEventUserPoolsCallerContext contains information about the caller
5664type CognitoEventUserPoolsCallerContext struct {
5765 AWSSDKVersion string `json:"awsSdkVersion"`
@@ -111,6 +119,20 @@ type CognitoEventUserPoolsPostAuthenticationRequest struct {
111119type CognitoEventUserPoolsPostAuthenticationResponse struct {
112120}
113121
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+
114136// ClaimsOverrideDetails allows lambda to add, supress or override claims in the token
115137type ClaimsOverrideDetails struct {
116138 GroupOverrideDetails GroupConfiguration `json:"groupOverrideDetails"`
0 commit comments