Boto3 Cognito InitiateAuth属性值不能为null

时间:2019-07-14 21:59:50

标签: boto3 amazon-cognito

我已经设置了带有一些自定义属性的用户池。如果使用boto3注册方法,则可以注册用户而无需发送其中一个属性的值。但是,如果从旧系统迁移用户,则迁移lambda可以正常工作,但是我遇到了boto错误

    botocore.errorfactory.UserNotFoundException: An error occurred (UserNotFoundException) when calling the InitiateAuth operation: Attribute value for custom:my_attribute must not be null

那么,为什么当my_attribute为null时,注册不会失败,但是InitiateAuth失败?这是Boto问题,Cognito问题还是我所缺少的东西?

谢谢

0 个答案:

没有答案