简体   繁体   English

Amazon Cognito删除帐户

[英]Amazon Cognito Delete account

I have Amazon Cognito user pool with few users added in it. 我的Amazon Cognito用户池中添加了很少的用户。 I have added trigger to invoke my Lambda function after Post confirmation. 我添加了触发器以在Post确认后调用我的Lambda函数。 Do we have any trigger in Cognito to invoke the Lambda function after "User Signout" and "Delete User". Cognito中是否有任何触发器可以在“用户注销”和“删除用户”之后调用Lambda函数。 I did not see any trigger in Cognito. 我没有在Cognito中看到任何触发器。

How the lambda function can be invoked automatically after User signout and Delete user. 用户注销和删除用户后如何自动调用lambda函数。 Kindly throw some light on this. 请对此进行一些说明。

TL;DR: Can't be done TL; DR:无法完成

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. 甚至LOGOUT端点也只是清除现有会话。 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. 通常,在这种情况下,我们可以使用Cloudtrail进行一些变通,但是没有用于注销的API(除非您算出GlobalSignOut ),即使如此,Cognito也不记录用户级别的API。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM