MCPcopy
hub / github.com/aws/aws-lambda-go / ExampleS3Event

Function ExampleS3Event

events/example_s3_test.go:16–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14)
15
16func ExampleS3Event() {
17 lambda.Start(func(ctx context.Context, s3Event *events.S3Event) {
18 for _, record := range s3Event.Records {
19 s3 := record.S3
20 fmt.Printf("[%s - %s] Bucket = %s, Key = %s \n", record.EventSource, record.EventTime, s3.Bucket.Name, s3.Object.Key)
21 }
22 })
23}
24
25// S3 Object Lambda allows you to add your own code to S3 GET requests to modify and process data
26// as it is returned to an application. This example receives S3 Object Lambda event data and returns object metadata.

Callers

nothing calls this directly

Calls 1

StartFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…