I am trying to implement an AWS mechanism in AWS, I get an error message due to a Lambda response. I cannot find the correct return type in the docs.
Lambda:
exports.handler = (event, context, callback) => {
event.response.autoConfirmUser = true;
context.succeed(event.response);
};
An exception:
Unrecognized lambda output (Service: AWSCognitoIdentityProviderService; Status code: 400; Error code: InvalidLambdaResponseException; Request ID: 5c7a2436-0515-11e7-b971-41a89adf53ea)
source
share