|
17 | 17 | using System.IO;
|
18 | 18 | using System.Text;
|
19 | 19 | using System.Threading.Tasks;
|
20 |
| -using Amazon.DynamoDBv2.Model; |
21 | 20 | using Amazon.Lambda.DynamoDBEvents;
|
22 | 21 | using Amazon.Lambda.KinesisEvents;
|
23 | 22 | using Amazon.Lambda.SQSEvents;
|
@@ -238,47 +237,47 @@ public Task TestDynamoDb()
|
238 | 237 | new()
|
239 | 238 | {
|
240 | 239 | EventID = "1",
|
241 |
| - Dynamodb = new StreamRecord |
| 240 | + Dynamodb = new DynamoDBEvent.StreamRecord |
242 | 241 | {
|
243 |
| - Keys = new Dictionary<string, AttributeValue> |
| 242 | + Keys = new Dictionary<string, DynamoDBEvent.AttributeValue> |
244 | 243 | {
|
245 |
| - { "Id", new AttributeValue { N = "1" } } |
| 244 | + { "Id", new DynamoDBEvent.AttributeValue { N = "1" } } |
246 | 245 | },
|
247 |
| - NewImage = new Dictionary<string, AttributeValue> |
| 246 | + NewImage = new Dictionary<string, DynamoDBEvent.AttributeValue> |
248 | 247 | {
|
249 |
| - { "Product", new AttributeValue { S = "{\"Id\":1,\"Name\":\"product-name\",\"Price\":14}" } } |
| 248 | + { "Product", new DynamoDBEvent.AttributeValue { S = "{\"Id\":1,\"Name\":\"product-name\",\"Price\":14}" } } |
250 | 249 | },
|
251 | 250 | SequenceNumber = "1"
|
252 | 251 | }
|
253 | 252 | },
|
254 | 253 | new()
|
255 | 254 | {
|
256 | 255 | EventID = "1",
|
257 |
| - Dynamodb = new StreamRecord |
| 256 | + Dynamodb = new DynamoDBEvent.StreamRecord |
258 | 257 | {
|
259 |
| - Keys = new Dictionary<string, AttributeValue> |
| 258 | + Keys = new Dictionary<string, DynamoDBEvent.AttributeValue> |
260 | 259 | {
|
261 |
| - { "Id", new AttributeValue { N = "1" } } |
| 260 | + { "Id", new DynamoDBEvent.AttributeValue { N = "1" } } |
262 | 261 | },
|
263 |
| - NewImage = new Dictionary<string, AttributeValue> |
| 262 | + NewImage = new Dictionary<string, DynamoDBEvent.AttributeValue> |
264 | 263 | {
|
265 |
| - { "Product", new AttributeValue { S = "failure" } } |
| 264 | + { "Product", new DynamoDBEvent.AttributeValue { S = "failure" } } |
266 | 265 | },
|
267 | 266 | SequenceNumber = "2"
|
268 | 267 | }
|
269 | 268 | },
|
270 | 269 | new()
|
271 | 270 | {
|
272 | 271 | EventID = "1",
|
273 |
| - Dynamodb = new StreamRecord |
| 272 | + Dynamodb = new DynamoDBEvent.StreamRecord |
274 | 273 | {
|
275 |
| - Keys = new Dictionary<string, AttributeValue> |
| 274 | + Keys = new Dictionary<string, DynamoDBEvent.AttributeValue> |
276 | 275 | {
|
277 |
| - { "Id", new AttributeValue { N = "1" } } |
| 276 | + { "Id", new DynamoDBEvent.AttributeValue { N = "1" } } |
278 | 277 | },
|
279 |
| - NewImage = new Dictionary<string, AttributeValue> |
| 278 | + NewImage = new Dictionary<string, DynamoDBEvent.AttributeValue> |
280 | 279 | {
|
281 |
| - { "Product", new AttributeValue { S = "{\"Id\":1,\"Name\":\"product-name\",\"Price\":14}" } } |
| 280 | + { "Product", new DynamoDBEvent.AttributeValue { S = "{\"Id\":1,\"Name\":\"product-name\",\"Price\":14}" } } |
282 | 281 | },
|
283 | 282 | SequenceNumber = "3"
|
284 | 283 | }
|
|
0 commit comments