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

Function ExampleKinesisEvent

events/example_kinesis_test.go:12–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10)
11
12func ExampleKinesisEvent() {
13 lambda.Start(func(ctx context.Context, kinesisEvent *events.KinesisEvent) error {
14 for _, record := range kinesisEvent.Records {
15 kinesisRecord := record.Kinesis
16 dataBytes := kinesisRecord.Data
17 dataText := string(dataBytes)
18
19 fmt.Printf("%s Data = %s \n", record.EventName, dataText)
20 }
21
22 return nil
23 })
24}
25
26// This example transforms Kinesis Firehose records by converting the data to uppercase.
27func ExampleKinesisFirehoseEvent() {

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…