From e099803b0ccdce0c4327ca1720f728868170461c Mon Sep 17 00:00:00 2001 From: Bryan Moffatt Date: Wed, 12 Feb 2020 15:58:13 +0000 Subject: [PATCH] Remove misleading README_AppSync.md events.AppSyncResolverTemplate isn't useful for using AppSync with go1.x, AppSync customers should be using `json.RawMessage`, or otherwise defining structs for their post transformation input. --- events/README_AppSync.md | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 events/README_AppSync.md diff --git a/events/README_AppSync.md b/events/README_AppSync.md deleted file mode 100644 index c4a0e04b..00000000 --- a/events/README_AppSync.md +++ /dev/null @@ -1,30 +0,0 @@ - -# Sample Function - -The following is a sample class and Lambda function that receives AWS AppSync event message data as input, writes some of the message data to CloudWatch Logs, and responds with a 200 status and the same body as the request. (Note that by default anything written to Console will be logged as CloudWatch Logs events.) - -```go -package main - -import ( - "context" - "fmt" - - "github.com/aws/aws-lambda-go/events" - "github.com/aws/aws-lambda-go/lambda" -) - -func handler(ctx context.Context, event events.AppSyncResolverTemplate) error { - - fmt.Printf("Version: %s\n", event.Version) - fmt.Printf("Operation: %s\n", event.Operation) - fmt.Printf("Payload: %s\n", string(event.Payload)) - - return nil -} - -func main() { - lambda.Start(handler) -} - -```