AWS Cognito 更新 CustomEmailSender 错误的 lambda 配置

问题描述 投票:0回答:1

场景:我想使用第三方服务发送电子邮件,根据AWS文档需要配置用户池

LambdaConfig
属性。在 aws sdk 中更新命令时

aws cognito-idp update-user-pool --user-pool-id ${user-pool-id} --lambda-config "CustomEmailSender={LambdaVersion=V1_0,LambdaArn=${LAMBDA-ARN}},KMSKeyId=${KMS-ARN}"

出现错误:

Unknown parameter in LambdaConfig: "CustomEmailSender", must be one of: PreSignUp, CustomMessage, PostConfirmation, PreAuthentication, PostAuthentication, DefineAuthChallenge, CreateAuthChallenge, VerifyAuthChallengeResponse, PreTokenGeneration, UserMigration
Unknown parameter in LambdaConfig: "KMSKeyId", must be one of: PreSignUp, CustomMessage, PostConfirmation, PreAuthentication, PostAuthentication, DefineAuthChallenge, CreateAuthChallenge, VerifyAuthChallengeResponse, PreTokenGeneration, UserMigration
amazon-cognito
1个回答
0
投票

尝试更新你的 CLI,我的

aws --version
升级后有点落后。

感谢这篇文章

© www.soinside.com 2019 - 2024. All rights reserved.