Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 347 Bytes

README_CodeCommit.md

File metadata and controls

17 lines (14 loc) · 347 Bytes

Sample Function

The following is a sample Lambda function that receives Amazon CodeCommit event records input and prints them to os.Stdout.)

import (
    "fmt"
    "github.com/aws/aws-lambda-go/events"
)

func handleRequest(evt events.CodeCommitEvent) {
    for _, record := range evt.Records {
        fmt.Println(record)
    }
}