github.com/Foodji/aws-lambda-go@v1.20.2/events/kinesis.go (about)

     1  // Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
     2  
     3  package events
     4  
     5  type KinesisEvent struct {
     6  	Records []KinesisEventRecord `json:"Records"`
     7  }
     8  
     9  type KinesisEventRecord struct {
    10  	AwsRegion         string        `json:"awsRegion"`
    11  	EventID           string        `json:"eventID"`
    12  	EventName         string        `json:"eventName"`
    13  	EventSource       string        `json:"eventSource"`
    14  	EventSourceArn    string        `json:"eventSourceARN"`
    15  	EventVersion      string        `json:"eventVersion"`
    16  	InvokeIdentityArn string        `json:"invokeIdentityArn"`
    17  	Kinesis           KinesisRecord `json:"kinesis"`
    18  }
    19  
    20  type KinesisRecord struct {
    21  	ApproximateArrivalTimestamp SecondsEpochTime `json:"approximateArrivalTimestamp"`
    22  	Data                        []byte           `json:"data"`
    23  	EncryptionType              string           `json:"encryptionType,omitempty"`
    24  	PartitionKey                string           `json:"partitionKey"`
    25  	SequenceNumber              string           `json:"sequenceNumber"`
    26  	KinesisSchemaVersion        string           `json:"kinesisSchemaVersion"`
    27  }