Kno*_*per 10 amazon-cognito aws-lambda
我正在尝试在AWS中实现自动确认机制,由于Lambda响应,我收到错误.我在文档中找不到正确的返回类型.
LAMBDA:
exports.handler = (event, context, callback) => {
event.response.autoConfirmUser = true;
context.succeed(event.response);
};
Run Code Online (Sandbox Code Playgroud)
例外:
无法识别的lambda输出(服务:AWSCognitoIdentityProviderService;状态代码:400;错误代码:InvalidLambdaResponseException;请求ID:5c7a2436-0515-11e7-b971-41a89adf53ea)
Che*_*hta 18
如Cognito开发人员指南中的PreSignUp触发器示例所示,您应该使用context.done(null, event);或context.succeed(event);在触发器的末尾.
Cognito希望将完整的事件源作为不同Cognito用户池流的一部分调用lambda触发器作为响应.
小智 6
Ruby lambda 人,所有 Cognito 想要的都是事件对象。
def lambda_handler(event:, context:)
# TODO implement
return event
endRun Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4759 次 |
| 最近记录: |