Alternative for context.succeed(event)

156 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 best solutions below

0
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