更新自定义电子邮件发送器的Cognito池时发生错误。

0

【以下的问题经过翻译处理】 你好, 我正在尝试更新现有的 Cognito 用户池以使其使用第三方提供商发送电子邮件,我正在关注中提到的每个细节 https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-custom-email-sender.html 但是,当使用 CLI 命令“aws cognito-idp update-user-pool --lambda-config”更新池时,我收到以下错误:

参数验证失败: LambdaConfig 中的未知参数:“CustomEmailSender”,必须是以下之一:PreSignUp、CustomMessage、PostConfirmation、PreAuthentication、PostAuthentication、DefineAuthChallenge、CreateAuthChallenge、VerifyAuthChallengeResponse、PreTokenGeneration、UserMigration LambdaConfig 中的未知参数:“KMSKeyID”,必须是以下之一:PreSignUp、CustomMessage、PostConfirmation、PreAuthentication、PostAuthentication、DefineAuthChallenge、CreateAuthChallenge、VerifyAuthChallengeResponse、PreTokenGeneration、UserMigration

所以我的理解是 CustomEmailSender 由于某种原因被拒绝作为参数! 同时这在控制台中也不可用。

我只能在使用 CloudFormation YAML 脚本创建用户池时设置 CustomEmailSender,但我无法更新现有用户池

非常感谢您提供这方面的帮助。

1回答
0

【以下的回答经过翻译处理】 请您确认是否使用了最新版本的CLI?最新版本应当支持此功能。

profile picture
エキスパート
回答済み 5ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン