@aws-solutions-constructs/aws-sqs-lambda 2.50.0 → 2.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/.eslintignore +2 -0
  2. package/.jsii +50 -5
  3. package/integ.config.json +7 -0
  4. package/lib/index.js +1 -1
  5. package/package.json +12 -11
  6. package/test/integ.sqslam-deployFifoQueue.js +5 -2
  7. package/test/integ.sqslam-deployFifoQueue.js.snapshot/asset.0904d3723480fed2daf7885caa427b930881caae6879d1e6b0d395020173ef6f/index.js +21 -0
  8. package/test/integ.sqslam-deployFifoQueue.js.snapshot/cdk.out +1 -0
  9. package/test/integ.sqslam-deployFifoQueue.js.snapshot/integ.json +12 -0
  10. package/test/integ.sqslam-deployFifoQueue.js.snapshot/manifest.json +155 -0
  11. package/test/integ.sqslam-deployFifoQueue.js.snapshot/sqslam-deployFifoQueue.assets.json +32 -0
  12. package/test/integ.sqslam-deployFifoQueue.js.snapshot/sqslam-deployFifoQueue.template.json +378 -0
  13. package/test/integ.sqslam-deployFifoQueue.js.snapshot/sqslamdeployFifoQueueIntegDefaultTestDeployAssert77FD67F7.assets.json +19 -0
  14. package/test/integ.sqslam-deployFifoQueue.js.snapshot/sqslamdeployFifoQueueIntegDefaultTestDeployAssert77FD67F7.template.json +36 -0
  15. package/test/integ.sqslam-deployFifoQueue.js.snapshot/tree.json +592 -0
  16. package/test/integ.sqslam-deployFunction.js +5 -2
  17. package/test/integ.sqslam-deployFunction.js.snapshot/asset.0904d3723480fed2daf7885caa427b930881caae6879d1e6b0d395020173ef6f/index.js +21 -0
  18. package/test/integ.sqslam-deployFunction.js.snapshot/cdk.out +1 -0
  19. package/test/integ.sqslam-deployFunction.js.snapshot/integ.json +12 -0
  20. package/test/integ.sqslam-deployFunction.js.snapshot/manifest.json +155 -0
  21. package/test/integ.sqslam-deployFunction.js.snapshot/sqslam-deployFunction.assets.json +32 -0
  22. package/test/integ.sqslam-deployFunction.js.snapshot/sqslam-deployFunction.template.json +374 -0
  23. package/test/integ.sqslam-deployFunction.js.snapshot/sqslamdeployFunctionIntegDefaultTestDeployAssert1ACA7AF2.assets.json +19 -0
  24. package/test/integ.sqslam-deployFunction.js.snapshot/sqslamdeployFunctionIntegDefaultTestDeployAssert1ACA7AF2.template.json +36 -0
  25. package/test/integ.sqslam-deployFunction.js.snapshot/tree.json +588 -0
  26. package/test/integ.sqslam-existingFunction.js +5 -2
  27. package/test/integ.sqslam-existingFunction.js.snapshot/asset.0904d3723480fed2daf7885caa427b930881caae6879d1e6b0d395020173ef6f/index.js +21 -0
  28. package/test/integ.sqslam-existingFunction.js.snapshot/cdk.out +1 -0
  29. package/test/integ.sqslam-existingFunction.js.snapshot/integ.json +12 -0
  30. package/test/integ.sqslam-existingFunction.js.snapshot/manifest.json +155 -0
  31. package/test/integ.sqslam-existingFunction.js.snapshot/sqslam-existingFunction.assets.json +32 -0
  32. package/test/integ.sqslam-existingFunction.js.snapshot/sqslam-existingFunction.template.json +374 -0
  33. package/test/integ.sqslam-existingFunction.js.snapshot/sqslamexistingFunctionIntegDefaultTestDeployAssert2E8A6942.assets.json +19 -0
  34. package/test/integ.sqslam-existingFunction.js.snapshot/sqslamexistingFunctionIntegDefaultTestDeployAssert2E8A6942.template.json +36 -0
  35. package/test/integ.sqslam-existingFunction.js.snapshot/tree.json +588 -0
  36. package/test/integ.sqslam-deployFifoQueue.expected.json +0 -378
  37. package/test/integ.sqslam-deployFunction.expected.json +0 -374
  38. package/test/integ.sqslam-existingFunction.expected.json +0 -374
@@ -0,0 +1,592 @@
1
+ {
2
+ "version": "tree-0.1",
3
+ "tree": {
4
+ "id": "App",
5
+ "path": "",
6
+ "children": {
7
+ "sqslam-deployFifoQueue": {
8
+ "id": "sqslam-deployFifoQueue",
9
+ "path": "sqslam-deployFifoQueue",
10
+ "children": {
11
+ "test-sqs-lambda-fifo": {
12
+ "id": "test-sqs-lambda-fifo",
13
+ "path": "sqslam-deployFifoQueue/test-sqs-lambda-fifo",
14
+ "children": {
15
+ "LambdaFunctionServiceRole": {
16
+ "id": "LambdaFunctionServiceRole",
17
+ "path": "sqslam-deployFifoQueue/test-sqs-lambda-fifo/LambdaFunctionServiceRole",
18
+ "children": {
19
+ "ImportLambdaFunctionServiceRole": {
20
+ "id": "ImportLambdaFunctionServiceRole",
21
+ "path": "sqslam-deployFifoQueue/test-sqs-lambda-fifo/LambdaFunctionServiceRole/ImportLambdaFunctionServiceRole",
22
+ "constructInfo": {
23
+ "fqn": "aws-cdk-lib.Resource",
24
+ "version": "2.118.0"
25
+ }
26
+ },
27
+ "Resource": {
28
+ "id": "Resource",
29
+ "path": "sqslam-deployFifoQueue/test-sqs-lambda-fifo/LambdaFunctionServiceRole/Resource",
30
+ "attributes": {
31
+ "aws:cdk:cloudformation:type": "AWS::IAM::Role",
32
+ "aws:cdk:cloudformation:props": {
33
+ "assumeRolePolicyDocument": {
34
+ "Statement": [
35
+ {
36
+ "Action": "sts:AssumeRole",
37
+ "Effect": "Allow",
38
+ "Principal": {
39
+ "Service": "lambda.amazonaws.com"
40
+ }
41
+ }
42
+ ],
43
+ "Version": "2012-10-17"
44
+ },
45
+ "policies": [
46
+ {
47
+ "policyName": "LambdaFunctionServiceRolePolicy",
48
+ "policyDocument": {
49
+ "Statement": [
50
+ {
51
+ "Action": [
52
+ "logs:CreateLogGroup",
53
+ "logs:CreateLogStream",
54
+ "logs:PutLogEvents"
55
+ ],
56
+ "Effect": "Allow",
57
+ "Resource": {
58
+ "Fn::Join": [
59
+ "",
60
+ [
61
+ "arn:",
62
+ {
63
+ "Ref": "AWS::Partition"
64
+ },
65
+ ":logs:",
66
+ {
67
+ "Ref": "AWS::Region"
68
+ },
69
+ ":",
70
+ {
71
+ "Ref": "AWS::AccountId"
72
+ },
73
+ ":log-group:/aws/lambda/*"
74
+ ]
75
+ ]
76
+ }
77
+ }
78
+ ],
79
+ "Version": "2012-10-17"
80
+ }
81
+ }
82
+ ]
83
+ }
84
+ },
85
+ "constructInfo": {
86
+ "fqn": "aws-cdk-lib.aws_iam.CfnRole",
87
+ "version": "2.118.0"
88
+ }
89
+ },
90
+ "DefaultPolicy": {
91
+ "id": "DefaultPolicy",
92
+ "path": "sqslam-deployFifoQueue/test-sqs-lambda-fifo/LambdaFunctionServiceRole/DefaultPolicy",
93
+ "children": {
94
+ "Resource": {
95
+ "id": "Resource",
96
+ "path": "sqslam-deployFifoQueue/test-sqs-lambda-fifo/LambdaFunctionServiceRole/DefaultPolicy/Resource",
97
+ "attributes": {
98
+ "aws:cdk:cloudformation:type": "AWS::IAM::Policy",
99
+ "aws:cdk:cloudformation:props": {
100
+ "policyDocument": {
101
+ "Statement": [
102
+ {
103
+ "Action": [
104
+ "xray:PutTelemetryRecords",
105
+ "xray:PutTraceSegments"
106
+ ],
107
+ "Effect": "Allow",
108
+ "Resource": "*"
109
+ },
110
+ {
111
+ "Action": [
112
+ "sqs:ChangeMessageVisibility",
113
+ "sqs:DeleteMessage",
114
+ "sqs:GetQueueAttributes",
115
+ "sqs:GetQueueUrl",
116
+ "sqs:ReceiveMessage"
117
+ ],
118
+ "Effect": "Allow",
119
+ "Resource": {
120
+ "Fn::GetAtt": [
121
+ "testsqslambdafifoqueue45DD24D7",
122
+ "Arn"
123
+ ]
124
+ }
125
+ }
126
+ ],
127
+ "Version": "2012-10-17"
128
+ },
129
+ "policyName": "testsqslambdafifoLambdaFunctionServiceRoleDefaultPolicy016B538E",
130
+ "roles": [
131
+ {
132
+ "Ref": "testsqslambdafifoLambdaFunctionServiceRole74463822"
133
+ }
134
+ ]
135
+ }
136
+ },
137
+ "constructInfo": {
138
+ "fqn": "aws-cdk-lib.aws_iam.CfnPolicy",
139
+ "version": "2.118.0"
140
+ }
141
+ }
142
+ },
143
+ "constructInfo": {
144
+ "fqn": "aws-cdk-lib.aws_iam.Policy",
145
+ "version": "2.118.0"
146
+ }
147
+ }
148
+ },
149
+ "constructInfo": {
150
+ "fqn": "aws-cdk-lib.aws_iam.Role",
151
+ "version": "2.118.0"
152
+ }
153
+ },
154
+ "LambdaFunction": {
155
+ "id": "LambdaFunction",
156
+ "path": "sqslam-deployFifoQueue/test-sqs-lambda-fifo/LambdaFunction",
157
+ "children": {
158
+ "Code": {
159
+ "id": "Code",
160
+ "path": "sqslam-deployFifoQueue/test-sqs-lambda-fifo/LambdaFunction/Code",
161
+ "children": {
162
+ "Stage": {
163
+ "id": "Stage",
164
+ "path": "sqslam-deployFifoQueue/test-sqs-lambda-fifo/LambdaFunction/Code/Stage",
165
+ "constructInfo": {
166
+ "fqn": "aws-cdk-lib.AssetStaging",
167
+ "version": "2.118.0"
168
+ }
169
+ },
170
+ "AssetBucket": {
171
+ "id": "AssetBucket",
172
+ "path": "sqslam-deployFifoQueue/test-sqs-lambda-fifo/LambdaFunction/Code/AssetBucket",
173
+ "constructInfo": {
174
+ "fqn": "aws-cdk-lib.aws_s3.BucketBase",
175
+ "version": "2.118.0"
176
+ }
177
+ }
178
+ },
179
+ "constructInfo": {
180
+ "fqn": "aws-cdk-lib.aws_s3_assets.Asset",
181
+ "version": "2.118.0"
182
+ }
183
+ },
184
+ "Resource": {
185
+ "id": "Resource",
186
+ "path": "sqslam-deployFifoQueue/test-sqs-lambda-fifo/LambdaFunction/Resource",
187
+ "attributes": {
188
+ "aws:cdk:cloudformation:type": "AWS::Lambda::Function",
189
+ "aws:cdk:cloudformation:props": {
190
+ "code": {
191
+ "s3Bucket": {
192
+ "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
193
+ },
194
+ "s3Key": "0904d3723480fed2daf7885caa427b930881caae6879d1e6b0d395020173ef6f.zip"
195
+ },
196
+ "environment": {
197
+ "variables": {
198
+ "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1"
199
+ }
200
+ },
201
+ "handler": "index.handler",
202
+ "role": {
203
+ "Fn::GetAtt": [
204
+ "testsqslambdafifoLambdaFunctionServiceRole74463822",
205
+ "Arn"
206
+ ]
207
+ },
208
+ "runtime": "nodejs16.x",
209
+ "tracingConfig": {
210
+ "mode": "Active"
211
+ }
212
+ }
213
+ },
214
+ "constructInfo": {
215
+ "fqn": "aws-cdk-lib.aws_lambda.CfnFunction",
216
+ "version": "2.118.0"
217
+ }
218
+ },
219
+ "SqsEventSource:sqslamdeployFifoQueuetestsqslambdafifoqueue471FB916": {
220
+ "id": "SqsEventSource:sqslamdeployFifoQueuetestsqslambdafifoqueue471FB916",
221
+ "path": "sqslam-deployFifoQueue/test-sqs-lambda-fifo/LambdaFunction/SqsEventSource:sqslamdeployFifoQueuetestsqslambdafifoqueue471FB916",
222
+ "children": {
223
+ "Resource": {
224
+ "id": "Resource",
225
+ "path": "sqslam-deployFifoQueue/test-sqs-lambda-fifo/LambdaFunction/SqsEventSource:sqslamdeployFifoQueuetestsqslambdafifoqueue471FB916/Resource",
226
+ "attributes": {
227
+ "aws:cdk:cloudformation:type": "AWS::Lambda::EventSourceMapping",
228
+ "aws:cdk:cloudformation:props": {
229
+ "eventSourceArn": {
230
+ "Fn::GetAtt": [
231
+ "testsqslambdafifoqueue45DD24D7",
232
+ "Arn"
233
+ ]
234
+ },
235
+ "functionName": {
236
+ "Ref": "testsqslambdafifoLambdaFunction0F3AE705"
237
+ }
238
+ }
239
+ },
240
+ "constructInfo": {
241
+ "fqn": "aws-cdk-lib.aws_lambda.CfnEventSourceMapping",
242
+ "version": "2.118.0"
243
+ }
244
+ }
245
+ },
246
+ "constructInfo": {
247
+ "fqn": "aws-cdk-lib.aws_lambda.EventSourceMapping",
248
+ "version": "2.118.0"
249
+ }
250
+ }
251
+ },
252
+ "constructInfo": {
253
+ "fqn": "aws-cdk-lib.aws_lambda.Function",
254
+ "version": "2.118.0"
255
+ }
256
+ },
257
+ "deadLetterQueue": {
258
+ "id": "deadLetterQueue",
259
+ "path": "sqslam-deployFifoQueue/test-sqs-lambda-fifo/deadLetterQueue",
260
+ "children": {
261
+ "Resource": {
262
+ "id": "Resource",
263
+ "path": "sqslam-deployFifoQueue/test-sqs-lambda-fifo/deadLetterQueue/Resource",
264
+ "attributes": {
265
+ "aws:cdk:cloudformation:type": "AWS::SQS::Queue",
266
+ "aws:cdk:cloudformation:props": {
267
+ "fifoQueue": true,
268
+ "kmsMasterKeyId": "alias/aws/sqs",
269
+ "queueName": "myDLQueue.fifo"
270
+ }
271
+ },
272
+ "constructInfo": {
273
+ "fqn": "aws-cdk-lib.aws_sqs.CfnQueue",
274
+ "version": "2.118.0"
275
+ }
276
+ },
277
+ "Policy": {
278
+ "id": "Policy",
279
+ "path": "sqslam-deployFifoQueue/test-sqs-lambda-fifo/deadLetterQueue/Policy",
280
+ "children": {
281
+ "Resource": {
282
+ "id": "Resource",
283
+ "path": "sqslam-deployFifoQueue/test-sqs-lambda-fifo/deadLetterQueue/Policy/Resource",
284
+ "attributes": {
285
+ "aws:cdk:cloudformation:type": "AWS::SQS::QueuePolicy",
286
+ "aws:cdk:cloudformation:props": {
287
+ "policyDocument": {
288
+ "Statement": [
289
+ {
290
+ "Action": [
291
+ "sqs:AddPermission",
292
+ "sqs:DeleteMessage",
293
+ "sqs:GetQueueAttributes",
294
+ "sqs:ReceiveMessage",
295
+ "sqs:RemovePermission",
296
+ "sqs:SendMessage",
297
+ "sqs:SetQueueAttributes"
298
+ ],
299
+ "Effect": "Allow",
300
+ "Principal": {
301
+ "AWS": {
302
+ "Fn::Join": [
303
+ "",
304
+ [
305
+ "arn:",
306
+ {
307
+ "Ref": "AWS::Partition"
308
+ },
309
+ ":iam::",
310
+ {
311
+ "Ref": "AWS::AccountId"
312
+ },
313
+ ":root"
314
+ ]
315
+ ]
316
+ }
317
+ },
318
+ "Resource": {
319
+ "Fn::GetAtt": [
320
+ "testsqslambdafifodeadLetterQueue99A41920",
321
+ "Arn"
322
+ ]
323
+ },
324
+ "Sid": "QueueOwnerOnlyAccess"
325
+ },
326
+ {
327
+ "Action": "SQS:*",
328
+ "Condition": {
329
+ "Bool": {
330
+ "aws:SecureTransport": "false"
331
+ }
332
+ },
333
+ "Effect": "Deny",
334
+ "Principal": {
335
+ "AWS": "*"
336
+ },
337
+ "Resource": {
338
+ "Fn::GetAtt": [
339
+ "testsqslambdafifodeadLetterQueue99A41920",
340
+ "Arn"
341
+ ]
342
+ },
343
+ "Sid": "HttpsOnly"
344
+ }
345
+ ],
346
+ "Version": "2012-10-17"
347
+ },
348
+ "queues": [
349
+ {
350
+ "Ref": "testsqslambdafifodeadLetterQueue99A41920"
351
+ }
352
+ ]
353
+ }
354
+ },
355
+ "constructInfo": {
356
+ "fqn": "aws-cdk-lib.aws_sqs.CfnQueuePolicy",
357
+ "version": "2.118.0"
358
+ }
359
+ }
360
+ },
361
+ "constructInfo": {
362
+ "fqn": "aws-cdk-lib.aws_sqs.QueuePolicy",
363
+ "version": "2.118.0"
364
+ }
365
+ }
366
+ },
367
+ "constructInfo": {
368
+ "fqn": "aws-cdk-lib.aws_sqs.Queue",
369
+ "version": "2.118.0"
370
+ }
371
+ },
372
+ "queue": {
373
+ "id": "queue",
374
+ "path": "sqslam-deployFifoQueue/test-sqs-lambda-fifo/queue",
375
+ "children": {
376
+ "Resource": {
377
+ "id": "Resource",
378
+ "path": "sqslam-deployFifoQueue/test-sqs-lambda-fifo/queue/Resource",
379
+ "attributes": {
380
+ "aws:cdk:cloudformation:type": "AWS::SQS::Queue",
381
+ "aws:cdk:cloudformation:props": {
382
+ "fifoQueue": true,
383
+ "kmsMasterKeyId": "alias/aws/sqs",
384
+ "queueName": "myQueue.fifo",
385
+ "redrivePolicy": {
386
+ "deadLetterTargetArn": {
387
+ "Fn::GetAtt": [
388
+ "testsqslambdafifodeadLetterQueue99A41920",
389
+ "Arn"
390
+ ]
391
+ },
392
+ "maxReceiveCount": 15
393
+ }
394
+ }
395
+ },
396
+ "constructInfo": {
397
+ "fqn": "aws-cdk-lib.aws_sqs.CfnQueue",
398
+ "version": "2.118.0"
399
+ }
400
+ },
401
+ "Policy": {
402
+ "id": "Policy",
403
+ "path": "sqslam-deployFifoQueue/test-sqs-lambda-fifo/queue/Policy",
404
+ "children": {
405
+ "Resource": {
406
+ "id": "Resource",
407
+ "path": "sqslam-deployFifoQueue/test-sqs-lambda-fifo/queue/Policy/Resource",
408
+ "attributes": {
409
+ "aws:cdk:cloudformation:type": "AWS::SQS::QueuePolicy",
410
+ "aws:cdk:cloudformation:props": {
411
+ "policyDocument": {
412
+ "Statement": [
413
+ {
414
+ "Action": [
415
+ "sqs:AddPermission",
416
+ "sqs:DeleteMessage",
417
+ "sqs:GetQueueAttributes",
418
+ "sqs:ReceiveMessage",
419
+ "sqs:RemovePermission",
420
+ "sqs:SendMessage",
421
+ "sqs:SetQueueAttributes"
422
+ ],
423
+ "Effect": "Allow",
424
+ "Principal": {
425
+ "AWS": {
426
+ "Fn::Join": [
427
+ "",
428
+ [
429
+ "arn:",
430
+ {
431
+ "Ref": "AWS::Partition"
432
+ },
433
+ ":iam::",
434
+ {
435
+ "Ref": "AWS::AccountId"
436
+ },
437
+ ":root"
438
+ ]
439
+ ]
440
+ }
441
+ },
442
+ "Resource": {
443
+ "Fn::GetAtt": [
444
+ "testsqslambdafifoqueue45DD24D7",
445
+ "Arn"
446
+ ]
447
+ },
448
+ "Sid": "QueueOwnerOnlyAccess"
449
+ },
450
+ {
451
+ "Action": "SQS:*",
452
+ "Condition": {
453
+ "Bool": {
454
+ "aws:SecureTransport": "false"
455
+ }
456
+ },
457
+ "Effect": "Deny",
458
+ "Principal": {
459
+ "AWS": "*"
460
+ },
461
+ "Resource": {
462
+ "Fn::GetAtt": [
463
+ "testsqslambdafifoqueue45DD24D7",
464
+ "Arn"
465
+ ]
466
+ },
467
+ "Sid": "HttpsOnly"
468
+ }
469
+ ],
470
+ "Version": "2012-10-17"
471
+ },
472
+ "queues": [
473
+ {
474
+ "Ref": "testsqslambdafifoqueue45DD24D7"
475
+ }
476
+ ]
477
+ }
478
+ },
479
+ "constructInfo": {
480
+ "fqn": "aws-cdk-lib.aws_sqs.CfnQueuePolicy",
481
+ "version": "2.118.0"
482
+ }
483
+ }
484
+ },
485
+ "constructInfo": {
486
+ "fqn": "aws-cdk-lib.aws_sqs.QueuePolicy",
487
+ "version": "2.118.0"
488
+ }
489
+ }
490
+ },
491
+ "constructInfo": {
492
+ "fqn": "aws-cdk-lib.aws_sqs.Queue",
493
+ "version": "2.118.0"
494
+ }
495
+ }
496
+ },
497
+ "constructInfo": {
498
+ "fqn": "@aws-solutions-constructs/aws-sqs-lambda.SqsToLambda",
499
+ "version": "2.50.0"
500
+ }
501
+ },
502
+ "Integ": {
503
+ "id": "Integ",
504
+ "path": "sqslam-deployFifoQueue/Integ",
505
+ "children": {
506
+ "DefaultTest": {
507
+ "id": "DefaultTest",
508
+ "path": "sqslam-deployFifoQueue/Integ/DefaultTest",
509
+ "children": {
510
+ "Default": {
511
+ "id": "Default",
512
+ "path": "sqslam-deployFifoQueue/Integ/DefaultTest/Default",
513
+ "constructInfo": {
514
+ "fqn": "constructs.Construct",
515
+ "version": "10.0.0"
516
+ }
517
+ },
518
+ "DeployAssert": {
519
+ "id": "DeployAssert",
520
+ "path": "sqslam-deployFifoQueue/Integ/DefaultTest/DeployAssert",
521
+ "children": {
522
+ "BootstrapVersion": {
523
+ "id": "BootstrapVersion",
524
+ "path": "sqslam-deployFifoQueue/Integ/DefaultTest/DeployAssert/BootstrapVersion",
525
+ "constructInfo": {
526
+ "fqn": "aws-cdk-lib.CfnParameter",
527
+ "version": "2.118.0"
528
+ }
529
+ },
530
+ "CheckBootstrapVersion": {
531
+ "id": "CheckBootstrapVersion",
532
+ "path": "sqslam-deployFifoQueue/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
533
+ "constructInfo": {
534
+ "fqn": "aws-cdk-lib.CfnRule",
535
+ "version": "2.118.0"
536
+ }
537
+ }
538
+ },
539
+ "constructInfo": {
540
+ "fqn": "aws-cdk-lib.Stack",
541
+ "version": "2.118.0"
542
+ }
543
+ }
544
+ },
545
+ "constructInfo": {
546
+ "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
547
+ "version": "2.118.0-alpha.0"
548
+ }
549
+ }
550
+ },
551
+ "constructInfo": {
552
+ "fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
553
+ "version": "2.118.0-alpha.0"
554
+ }
555
+ },
556
+ "BootstrapVersion": {
557
+ "id": "BootstrapVersion",
558
+ "path": "sqslam-deployFifoQueue/BootstrapVersion",
559
+ "constructInfo": {
560
+ "fqn": "aws-cdk-lib.CfnParameter",
561
+ "version": "2.118.0"
562
+ }
563
+ },
564
+ "CheckBootstrapVersion": {
565
+ "id": "CheckBootstrapVersion",
566
+ "path": "sqslam-deployFifoQueue/CheckBootstrapVersion",
567
+ "constructInfo": {
568
+ "fqn": "aws-cdk-lib.CfnRule",
569
+ "version": "2.118.0"
570
+ }
571
+ }
572
+ },
573
+ "constructInfo": {
574
+ "fqn": "aws-cdk-lib.Stack",
575
+ "version": "2.118.0"
576
+ }
577
+ },
578
+ "Tree": {
579
+ "id": "Tree",
580
+ "path": "Tree",
581
+ "constructInfo": {
582
+ "fqn": "constructs.Construct",
583
+ "version": "10.0.0"
584
+ }
585
+ }
586
+ },
587
+ "constructInfo": {
588
+ "fqn": "aws-cdk-lib.App",
589
+ "version": "2.118.0"
590
+ }
591
+ }
592
+ }
@@ -17,6 +17,7 @@ const aws_cdk_lib_1 = require("aws-cdk-lib");
17
17
  const lib_1 = require("../lib");
18
18
  const lambda = require("aws-cdk-lib/aws-lambda");
19
19
  const core_1 = require("@aws-solutions-constructs/core");
20
+ const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha");
20
21
  // Setup
21
22
  const app = new aws_cdk_lib_1.App();
22
23
  const stack = new aws_cdk_lib_1.Stack(app, core_1.generateIntegStackName(__filename));
@@ -34,5 +35,7 @@ const props = {
34
35
  };
35
36
  new lib_1.SqsToLambda(stack, 'test-sqs-lambda', props);
36
37
  // Synth
37
- app.synth();
38
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc3F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bnN0IGFwcCA9IG5ldyBBcHAoKTtcbmNvbnN0IHN0YWNrID0gbmV3IFN0YWNrKGFwcCwgZ2VuZXJhdGVJbnRlZ1N0YWNrTmFtZShfX2ZpbGVuYW1lKSk7XG5zdGFjay50ZW1wbGF0ZU9wdGlvbnMuZGVzY3JpcHRpb24gPSAnSW50ZWdyYXRpb24gVGVzdCBmb3IgYXdzLXNxcy1sYW1iZGEnO1xuXG4vLyBEZWZpbml0aW9uc1xuY29uc3QgcHJvcHM6IFNxc1RvTGFtYmRhUHJvcHMgPSB7XG4gIGxhbWJkYUZ1bmN0aW9uUHJvcHM6IHtcbiAgICBydW50aW1lOiBsYW1iZGEuUnVudGltZS5OT0RFSlNfMTZfWCxcbiAgICBoYW5kbGVyOiAnaW5kZXguaGFuZGxlcicsXG4gICAgY29kZTogbGFtYmRhLkNvZGUuZnJvbUFzc2V0KGAke19fZGlybmFtZX0vbGFtYmRhYClcbiAgfSxcbiAgcXVldWVQcm9wczoge30sXG4gIGRlcGxveURlYWRMZXR0ZXJRdWV1ZTogdHJ1ZSxcbiAgbWF4UmVjZWl2ZUNvdW50OiAzXG59O1xuXG5uZXcgU3FzVG9MYW1iZGEoc3RhY2ssICd0ZXN0LXNxcy1sYW1iZGEnLCBwcm9wcyk7XG5cbi8vIFN5bnRoXG5uZXcgSW50ZWdUZXN0KHN0YWNrLCAnSW50ZWcnLCB7IHRlc3RDYXNlczogW1xuICBzdGFja1xuXSB9KTtcbiJdfQ==
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
5
+ * with the License. A copy of the License is located at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
10
+ * OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
11
+ * and limitations under the License.
12
+ */
13
+
14
+ exports.handler = async (event, context) => {
15
+ console.log('Received event:', JSON.stringify(event, null, 2));
16
+     return {
17
+       statusCode: 200,
18
+       headers: { 'Content-Type': 'text/plain' },
19
+       body: `Hello from Project Vesper! You've hit ${event.path}\n`
20
+     };
21
+ };
@@ -0,0 +1 @@
1
+ {"version":"36.0.0"}
@@ -0,0 +1,12 @@
1
+ {
2
+ "version": "36.0.0",
3
+ "testCases": {
4
+ "sqslam-deployFunction/Integ/DefaultTest": {
5
+ "stacks": [
6
+ "sqslam-deployFunction"
7
+ ],
8
+ "assertionStack": "sqslam-deployFunction/Integ/DefaultTest/DeployAssert",
9
+ "assertionStackName": "sqslamdeployFunctionIntegDefaultTestDeployAssert1ACA7AF2"
10
+ }
11
+ }
12
+ }