Amazon Cognito删除帐户 [英] Amazon Cognito Delete account
问题描述
我有一个Amazon Cognito用户池,其中添加了很少的用户.我添加了触发器以在Post确认后调用我的Lambda函数.Cognito中是否有任何触发器可以在用户注销"和删除用户"之后调用Lambda函数.我没有在Cognito中看到任何触发器.
I have Amazon Cognito user pool with few users added in it. I have added trigger to invoke my Lambda function after Post confirmation. Do we have any trigger in Cognito to invoke the Lambda function after "User Signout" and "Delete User". I did not see any trigger in Cognito.
在用户注销并删除用户后如何自动调用lambda函数.请对此进行一些说明.
How the lambda function can be invoked automatically after User signout and Delete user. Kindly throw some light on this.
推荐答案
TL; DR:无法完成
它不能自动完成,因为与创建事件的登录/注册不同,本质上没有注销事件.甚至 LOGOUT 端点也只会清除现有会话.通常,在这种情况下,我们可以使用Cloudtrail完成一些解决方法,但是没有用于注销的API(除非您计算
It can't be done automatically because unlike Sign-in/Sign-ups which create an event, there is no logout event per se. Even the LOGOUT endpoint just clears the existing session. Normally, in such cases we could have done some workaround using Cloudtrail but there is no API for sign out (unless you count GlobalSignOut) and even then Cognito does not log user level APIs.
这篇关于Amazon Cognito删除帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!