This package allows you to write AWS Lambda functions to process Amazon Cognito Sync events published each time a dataset is synchronized.
For step by step instructions on how to author your AWS Lambda function code in Go, see eawsy/aws-lambda-go-shim.
go get -u -d github.com/eawsy/aws-lambda-go-event/...
package main
import (
"log"
"github.com/eawsy/aws-lambda-go-event/service/lambda/runtime/event/cognitosyncevt"
"github.com/eawsy/aws-lambda-go-core/service/lambda/runtime"
)
func Handle(evt *cognitosyncevt.Event, ctx *runtime.Context) (interface{}, error) {
log.Println(evt)
return nil, nil
}