forked from aws/aws-lambda-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
KinesisEvent.cs
76 lines (66 loc) · 2.34 KB
/
KinesisEvent.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
namespace Amazon.Lambda.KinesisEvents
{
using System;
using System.Collections.Generic;
/// <summary>
/// AWS Kinesis stream event
/// http://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html
/// http://docs.aws.amazon.com/lambda/latest/dg/eventsources.html#eventsources-kinesis-streams
/// </summary>
public class KinesisEvent
{
/// <summary>
/// List of Kinesis event records.
/// </summary>
public IList<KinesisEventRecord> Records { get; set; }
/// <summary>
/// AWS Kinesis stream record
/// http://docs.aws.amazon.com/kinesis/latest/APIReference/API_Record.html
/// </summary>
public class Record : Amazon.Kinesis.Model.Record
{
/// <summary>
/// The schema version for the record.
/// </summary>
public string KinesisSchemaVersion { get; set; }
}
/// <summary>
/// Kinesis event record.
/// </summary>
public class KinesisEventRecord
{
/// <summary>
/// The AWS region where the event originated.
/// </summary>
public string AwsRegion { get; set; }
/// <summary>
/// The event id.
/// </summary>
public string EventId { get; set; }
/// <summary>
/// The name of the event.
/// </summary>
public string EventName { get; set; }
/// <summary>
/// The source of the event.
/// </summary>
public string EventSource { get; set; }
/// <summary>
/// The ARN of the event source.
/// </summary>
public string EventSourceARN { get; set; }
/// <summary>
/// The event version.
/// </summary>
public string EventVersion { get; set; }
/// <summary>
/// The ARN for the identity used to invoke the Lambda Function.
/// </summary>
public string InvokeIdentityArn { get; set; }
/// <summary>
/// The underlying Kinesis record associated with the event.
/// </summary>
public Record Kinesis { get; set; }
}
}
}