|
17 | 17 | using System.IO;
|
18 | 18 | using System.Linq;
|
19 | 19 | using System.Text;
|
20 |
| -using Amazon.DynamoDBv2.Model; |
21 | 20 | using Amazon.Lambda.DynamoDBEvents;
|
22 | 21 | using Amazon.Lambda.KinesisEvents;
|
23 | 22 | using Amazon.Lambda.SQSEvents;
|
@@ -101,79 +100,79 @@ internal static class Helpers
|
101 | 100 | new DynamoDBEvent.DynamodbStreamRecord
|
102 | 101 | {
|
103 | 102 | EventID = "1",
|
104 |
| - Dynamodb = new StreamRecord |
| 103 | + Dynamodb = new DynamoDBEvent.StreamRecord |
105 | 104 | {
|
106 |
| - Keys = new Dictionary<string, AttributeValue> |
| 105 | + Keys = new Dictionary<string, DynamoDBEvent.AttributeValue> |
107 | 106 | {
|
108 |
| - { "Id", new AttributeValue { N = "1" } } |
| 107 | + { "Id", new DynamoDBEvent.AttributeValue { N = "1" } } |
109 | 108 | },
|
110 |
| - NewImage = new Dictionary<string, AttributeValue> |
| 109 | + NewImage = new Dictionary<string, DynamoDBEvent.AttributeValue> |
111 | 110 | {
|
112 |
| - { "Product", new AttributeValue { S = "{\"Id\":1,\"Name\":\"product-name\",\"Price\":14}" } } |
| 111 | + { "Product", new DynamoDBEvent.AttributeValue { S = "{\"Id\":1,\"Name\":\"product-name\",\"Price\":14}" } } |
113 | 112 | },
|
114 | 113 | SequenceNumber = "1"
|
115 | 114 | }
|
116 | 115 | },
|
117 | 116 | new DynamoDBEvent.DynamodbStreamRecord
|
118 | 117 | {
|
119 | 118 | EventID = "1",
|
120 |
| - Dynamodb = new StreamRecord |
| 119 | + Dynamodb = new DynamoDBEvent.StreamRecord |
121 | 120 | {
|
122 |
| - Keys = new Dictionary<string, AttributeValue> |
| 121 | + Keys = new Dictionary<string, DynamoDBEvent.AttributeValue> |
123 | 122 | {
|
124 |
| - { "Id", new AttributeValue { N = "2" } } |
| 123 | + { "Id", new DynamoDBEvent.AttributeValue { N = "2" } } |
125 | 124 | },
|
126 |
| - NewImage = new Dictionary<string, AttributeValue> |
| 125 | + NewImage = new Dictionary<string, DynamoDBEvent.AttributeValue> |
127 | 126 | {
|
128 |
| - { "Product", new AttributeValue { S = "failure" } } |
| 127 | + { "Product", new DynamoDBEvent.AttributeValue { S = "failure" } } |
129 | 128 | },
|
130 | 129 | SequenceNumber = "2"
|
131 | 130 | }
|
132 | 131 | },
|
133 | 132 | new DynamoDBEvent.DynamodbStreamRecord
|
134 | 133 | {
|
135 | 134 | EventID = "1",
|
136 |
| - Dynamodb = new StreamRecord |
| 135 | + Dynamodb = new DynamoDBEvent.StreamRecord |
137 | 136 | {
|
138 |
| - Keys = new Dictionary<string, AttributeValue> |
| 137 | + Keys = new Dictionary<string, DynamoDBEvent.AttributeValue> |
139 | 138 | {
|
140 |
| - { "Id", new AttributeValue { N = "3" } } |
| 139 | + { "Id", new DynamoDBEvent.AttributeValue { N = "3" } } |
141 | 140 | },
|
142 |
| - NewImage = new Dictionary<string, AttributeValue> |
| 141 | + NewImage = new Dictionary<string, DynamoDBEvent.AttributeValue> |
143 | 142 | {
|
144 |
| - { "Product", new AttributeValue { S = "{\"Id\":3,\"Name\":\"product-name\",\"Price\":14}" } } |
| 143 | + { "Product", new DynamoDBEvent.AttributeValue { S = "{\"Id\":3,\"Name\":\"product-name\",\"Price\":14}" } } |
145 | 144 | },
|
146 | 145 | SequenceNumber = "3"
|
147 | 146 | }
|
148 | 147 | },
|
149 | 148 | new DynamoDBEvent.DynamodbStreamRecord
|
150 | 149 | {
|
151 | 150 | EventID = "1",
|
152 |
| - Dynamodb = new StreamRecord |
| 151 | + Dynamodb = new DynamoDBEvent.StreamRecord |
153 | 152 | {
|
154 |
| - Keys = new Dictionary<string, AttributeValue> |
| 153 | + Keys = new Dictionary<string, DynamoDBEvent.AttributeValue> |
155 | 154 | {
|
156 |
| - { "Id", new AttributeValue { N = "4" } } |
| 155 | + { "Id", new DynamoDBEvent.AttributeValue { N = "4" } } |
157 | 156 | },
|
158 |
| - NewImage = new Dictionary<string, AttributeValue> |
| 157 | + NewImage = new Dictionary<string, DynamoDBEvent.AttributeValue> |
159 | 158 | {
|
160 |
| - { "Product", new AttributeValue { S = "{\"Id\":4,\"Name\":\"product-name\",\"Price\":14}" } } |
| 159 | + { "Product", new DynamoDBEvent.AttributeValue { S = "{\"Id\":4,\"Name\":\"product-name\",\"Price\":14}" } } |
161 | 160 | },
|
162 | 161 | SequenceNumber = "4"
|
163 | 162 | }
|
164 | 163 | },
|
165 | 164 | new DynamoDBEvent.DynamodbStreamRecord
|
166 | 165 | {
|
167 | 166 | EventID = "1",
|
168 |
| - Dynamodb = new StreamRecord |
| 167 | + Dynamodb = new DynamoDBEvent.StreamRecord |
169 | 168 | {
|
170 |
| - Keys = new Dictionary<string, AttributeValue> |
| 169 | + Keys = new Dictionary<string, DynamoDBEvent.AttributeValue> |
171 | 170 | {
|
172 |
| - { "Id", new AttributeValue { N = "5" } } |
| 171 | + { "Id", new DynamoDBEvent.AttributeValue { N = "5" } } |
173 | 172 | },
|
174 |
| - NewImage = new Dictionary<string, AttributeValue> |
| 173 | + NewImage = new Dictionary<string, DynamoDBEvent.AttributeValue> |
175 | 174 | {
|
176 |
| - { "Product", new AttributeValue { S = "{\"Id\":5,\"Name\":\"product-name\",\"Price\":14}" } } |
| 175 | + { "Product", new DynamoDBEvent.AttributeValue { S = "{\"Id\":5,\"Name\":\"product-name\",\"Price\":14}" } } |
177 | 176 | },
|
178 | 177 | SequenceNumber = "5"
|
179 | 178 | }
|
|
0 commit comments