This package allows you to write AWS Lambda functions to perform custom actions in response to updates made to DynamoDB tables.
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/dynamodbstreamsevt"
"github.com/eawsy/aws-lambda-go-core/service/lambda/runtime"
)
func Handle(evt *dynamodbstreamsevt.Event, ctx *runtime.Context) (interface{}, error) {
for _, rec := range evt.Records {
log.Println(rec)
}
return nil, nil
}