场景:我想使用第三方服务发送电子邮件,根据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