Alternative for context.succeed(event)

150 views Asked by At

Iam trying to create a migration trigger using python to change my user pool.In this trigger, what will be the alternative for context.succeed(event) that needs to be sent back to cognito after successful verification of user.

1

There are 1 answers

0
Sony Wijaya On

According to the docs, you can return the event

def lambda_handler(event, context):
    # Your code here

    # Return to Amazon Cognito
    return event

Docs