()
| 14 | ) |
| 15 | |
| 16 | func 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. |
nothing calls this directly
no test coverage detected
searching dependent graphs…