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

     1  // Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
     2  
     3  package events
     4  
     5  type KinesisAnalyticsOutputDeliveryEvent struct {
     6  	InvocationID   string                                      `json:"invocationId"`
     7  	ApplicationARN string                                      `json:"applicationArn"`
     8  	Records        []KinesisAnalyticsOutputDeliveryEventRecord `json:"records"`
     9  }
    10  
    11  type KinesisAnalyticsOutputDeliveryEventRecord struct {
    12  	RecordID string `json:"recordId"`
    13  	Data     []byte `json:"data"`
    14  }
    15  
    16  type KinesisAnalyticsOutputDeliveryResponse struct {
    17  	Records []KinesisAnalyticsOutputDeliveryResponseRecord `json:"records"`
    18  }
    19  
    20  const (
    21  	KinesisAnalyticsOutputDeliveryOK     = "Ok"
    22  	KinesisAnalyticsOutputDeliveryFailed = "DeliveryFailed"
    23  )
    24  
    25  type KinesisAnalyticsOutputDeliveryResponseRecord struct {
    26  	RecordID string `json:"recordId"`
    27  	Result   string `json:"result"` //possible values include Ok and DeliveryFailed
    28  }