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