Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

Latest commit

 

History

History
44 lines (31 loc) · 1.35 KB

File metadata and controls

44 lines (31 loc) · 1.35 KB

Amazon Cognito Sync Events

Back to Home Go Doc AWS Doc

This package allows you to write AWS Lambda functions to process Amazon Cognito Sync events published each time a dataset is synchronized.

Quick Hands-On

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
}