Skip to content

Commit

Permalink
Merge branch 'master' into add-clientmetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
bmoffatt authored Jan 2, 2020
2 parents db17044 + b76bc6a commit 6b4e9f4
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions events/README_Cognito_UserPools_PreSignup.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,20 @@ Please see instructions for setting up the Cognito triggers at https://docs.aws.
package main

import (
"fmt"
"fmt"

"github.com/aws/aws-lambda-go/lambda"
"github.com/aws/aws-lambda-go/events"
"github.com/aws/aws-lambda-go/events"
"github.com/aws/aws-lambda-go/lambda"
)

// handler is the lambda handler invoked by the `lambda.Start` function call
func handler(event events.CognitoEventUserPoolsPreSignup) (events.CognitoEventUserPoolsPreSignup, error) {
fmt.Printf("PreSignup of user: %s\n", event.UserName)
event.Response.AutoConfirmUser = true
return event, nil
fmt.Printf("PreSignup of user: %s\n", event.UserName)
event.Response.AutoConfirmUser = true
return event, nil
}

func main() {
lambda.Start(handler)
lambda.Start(handler)
}
```

0 comments on commit 6b4e9f4

Please sign in to comment.