@aws-solutions-constructs/aws-lambda-kinesisstreams 2.44.0 → 2.46.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 (36) hide show
  1. package/.jsii +106 -15
  2. package/README.md +1 -1
  3. package/lib/index.js +5 -3
  4. package/package.json +5 -5
  5. package/test/{integ.existingLambda.expected.json → integ.lamkin-existingLambda.expected.json} +8 -8
  6. package/test/integ.lamkin-existingLambda.js +31 -0
  7. package/test/{integ.existingStream.expected.json → integ.lamkin-existingStream.expected.json} +8 -8
  8. package/test/integ.lamkin-existingStream.js +37 -0
  9. package/test/{integ.existingStreamWithCmk.expected.json → integ.lamkin-existingStreamWithCmk.expected.json} +10 -10
  10. package/test/integ.lamkin-existingStreamWithCmk.js +39 -0
  11. package/test/{integ.existingVpc.expected.json → integ.lamkin-existingVpc.expected.json} +129 -129
  12. package/test/integ.lamkin-existingVpc.js +34 -0
  13. package/test/{integ.newStreamFromProps.expected.json → integ.lamkin-newStreamFromProps.expected.json} +8 -8
  14. package/test/{integ.noArguments.js → integ.lamkin-newStreamFromProps.js} +5 -1
  15. package/test/{integ.newVpc.expected.json → integ.lamkin-newVpc.expected.json} +62 -62
  16. package/test/integ.lamkin-newVpc.js +31 -0
  17. package/test/{integ.newVpcFromProps.expected.json → integ.lamkin-newVpcFromProps.expected.json} +42 -42
  18. package/test/integ.lamkin-newVpcFromProps.js +34 -0
  19. package/test/{integ.noArguments.expected.json → integ.lamkin-noArguments.expected.json} +8 -8
  20. package/test/integ.lamkin-noArguments.js +30 -0
  21. package/test/lambda-kinesisstream.test.js +65 -1
  22. package/test/integ.existingLambda.js +0 -31
  23. package/test/integ.existingStream.js +0 -37
  24. package/test/integ.existingStreamWithCmk.js +0 -39
  25. package/test/integ.existingVpc.js +0 -34
  26. package/test/integ.newStreamFromProps.js +0 -34
  27. package/test/integ.newVpc.js +0 -31
  28. package/test/integ.newVpcFromProps.js +0 -34
  29. /package/test/{integ.existingLambda.d.ts → integ.lamkin-existingLambda.d.ts} +0 -0
  30. /package/test/{integ.existingStream.d.ts → integ.lamkin-existingStream.d.ts} +0 -0
  31. /package/test/{integ.existingStreamWithCmk.d.ts → integ.lamkin-existingStreamWithCmk.d.ts} +0 -0
  32. /package/test/{integ.existingVpc.d.ts → integ.lamkin-existingVpc.d.ts} +0 -0
  33. /package/test/{integ.newStreamFromProps.d.ts → integ.lamkin-newStreamFromProps.d.ts} +0 -0
  34. /package/test/{integ.newVpc.d.ts → integ.lamkin-newVpc.d.ts} +0 -0
  35. /package/test/{integ.newVpcFromProps.d.ts → integ.lamkin-newVpcFromProps.d.ts} +0 -0
  36. /package/test/{integ.noArguments.d.ts → integ.lamkin-noArguments.d.ts} +0 -0
@@ -10,7 +10,7 @@
10
10
  "Tags": [
11
11
  {
12
12
  "Key": "Name",
13
- "Value": "existingVpc/Vpc"
13
+ "Value": "lamkin-existingVpc/Vpc"
14
14
  }
15
15
  ]
16
16
  }
@@ -18,9 +18,6 @@
18
18
  "VpcPublicSubnet1Subnet5C2D37C4": {
19
19
  "Type": "AWS::EC2::Subnet",
20
20
  "Properties": {
21
- "VpcId": {
22
- "Ref": "Vpc8378EB38"
23
- },
24
21
  "AvailabilityZone": "test-region-1a",
25
22
  "CidrBlock": "10.0.0.0/19",
26
23
  "MapPublicIpOnLaunch": true,
@@ -35,9 +32,12 @@
35
32
  },
36
33
  {
37
34
  "Key": "Name",
38
- "Value": "existingVpc/Vpc/PublicSubnet1"
35
+ "Value": "lamkin-existingVpc/Vpc/PublicSubnet1"
39
36
  }
40
- ]
37
+ ],
38
+ "VpcId": {
39
+ "Ref": "Vpc8378EB38"
40
+ }
41
41
  },
42
42
  "Metadata": {
43
43
  "cfn_nag": {
@@ -53,15 +53,15 @@
53
53
  "VpcPublicSubnet1RouteTable6C95E38E": {
54
54
  "Type": "AWS::EC2::RouteTable",
55
55
  "Properties": {
56
- "VpcId": {
57
- "Ref": "Vpc8378EB38"
58
- },
59
56
  "Tags": [
60
57
  {
61
58
  "Key": "Name",
62
- "Value": "existingVpc/Vpc/PublicSubnet1"
59
+ "Value": "lamkin-existingVpc/Vpc/PublicSubnet1"
63
60
  }
64
- ]
61
+ ],
62
+ "VpcId": {
63
+ "Ref": "Vpc8378EB38"
64
+ }
65
65
  }
66
66
  },
67
67
  "VpcPublicSubnet1RouteTableAssociation97140677": {
@@ -78,12 +78,12 @@
78
78
  "VpcPublicSubnet1DefaultRoute3DA9E72A": {
79
79
  "Type": "AWS::EC2::Route",
80
80
  "Properties": {
81
- "RouteTableId": {
82
- "Ref": "VpcPublicSubnet1RouteTable6C95E38E"
83
- },
84
81
  "DestinationCidrBlock": "0.0.0.0/0",
85
82
  "GatewayId": {
86
83
  "Ref": "VpcIGWD7BA715C"
84
+ },
85
+ "RouteTableId": {
86
+ "Ref": "VpcPublicSubnet1RouteTable6C95E38E"
87
87
  }
88
88
  },
89
89
  "DependsOn": [
@@ -97,7 +97,7 @@
97
97
  "Tags": [
98
98
  {
99
99
  "Key": "Name",
100
- "Value": "existingVpc/Vpc/PublicSubnet1"
100
+ "Value": "lamkin-existingVpc/Vpc/PublicSubnet1"
101
101
  }
102
102
  ]
103
103
  }
@@ -105,19 +105,19 @@
105
105
  "VpcPublicSubnet1NATGateway4D7517AA": {
106
106
  "Type": "AWS::EC2::NatGateway",
107
107
  "Properties": {
108
- "SubnetId": {
109
- "Ref": "VpcPublicSubnet1Subnet5C2D37C4"
110
- },
111
108
  "AllocationId": {
112
109
  "Fn::GetAtt": [
113
110
  "VpcPublicSubnet1EIPD7E02669",
114
111
  "AllocationId"
115
112
  ]
116
113
  },
114
+ "SubnetId": {
115
+ "Ref": "VpcPublicSubnet1Subnet5C2D37C4"
116
+ },
117
117
  "Tags": [
118
118
  {
119
119
  "Key": "Name",
120
- "Value": "existingVpc/Vpc/PublicSubnet1"
120
+ "Value": "lamkin-existingVpc/Vpc/PublicSubnet1"
121
121
  }
122
122
  ]
123
123
  },
@@ -129,9 +129,6 @@
129
129
  "VpcPublicSubnet2Subnet691E08A3": {
130
130
  "Type": "AWS::EC2::Subnet",
131
131
  "Properties": {
132
- "VpcId": {
133
- "Ref": "Vpc8378EB38"
134
- },
135
132
  "AvailabilityZone": "test-region-1b",
136
133
  "CidrBlock": "10.0.32.0/19",
137
134
  "MapPublicIpOnLaunch": true,
@@ -146,9 +143,12 @@
146
143
  },
147
144
  {
148
145
  "Key": "Name",
149
- "Value": "existingVpc/Vpc/PublicSubnet2"
146
+ "Value": "lamkin-existingVpc/Vpc/PublicSubnet2"
150
147
  }
151
- ]
148
+ ],
149
+ "VpcId": {
150
+ "Ref": "Vpc8378EB38"
151
+ }
152
152
  },
153
153
  "Metadata": {
154
154
  "cfn_nag": {
@@ -164,15 +164,15 @@
164
164
  "VpcPublicSubnet2RouteTable94F7E489": {
165
165
  "Type": "AWS::EC2::RouteTable",
166
166
  "Properties": {
167
- "VpcId": {
168
- "Ref": "Vpc8378EB38"
169
- },
170
167
  "Tags": [
171
168
  {
172
169
  "Key": "Name",
173
- "Value": "existingVpc/Vpc/PublicSubnet2"
170
+ "Value": "lamkin-existingVpc/Vpc/PublicSubnet2"
174
171
  }
175
- ]
172
+ ],
173
+ "VpcId": {
174
+ "Ref": "Vpc8378EB38"
175
+ }
176
176
  }
177
177
  },
178
178
  "VpcPublicSubnet2RouteTableAssociationDD5762D8": {
@@ -189,12 +189,12 @@
189
189
  "VpcPublicSubnet2DefaultRoute97F91067": {
190
190
  "Type": "AWS::EC2::Route",
191
191
  "Properties": {
192
- "RouteTableId": {
193
- "Ref": "VpcPublicSubnet2RouteTable94F7E489"
194
- },
195
192
  "DestinationCidrBlock": "0.0.0.0/0",
196
193
  "GatewayId": {
197
194
  "Ref": "VpcIGWD7BA715C"
195
+ },
196
+ "RouteTableId": {
197
+ "Ref": "VpcPublicSubnet2RouteTable94F7E489"
198
198
  }
199
199
  },
200
200
  "DependsOn": [
@@ -208,7 +208,7 @@
208
208
  "Tags": [
209
209
  {
210
210
  "Key": "Name",
211
- "Value": "existingVpc/Vpc/PublicSubnet2"
211
+ "Value": "lamkin-existingVpc/Vpc/PublicSubnet2"
212
212
  }
213
213
  ]
214
214
  }
@@ -216,19 +216,19 @@
216
216
  "VpcPublicSubnet2NATGateway9182C01D": {
217
217
  "Type": "AWS::EC2::NatGateway",
218
218
  "Properties": {
219
- "SubnetId": {
220
- "Ref": "VpcPublicSubnet2Subnet691E08A3"
221
- },
222
219
  "AllocationId": {
223
220
  "Fn::GetAtt": [
224
221
  "VpcPublicSubnet2EIP3C605A87",
225
222
  "AllocationId"
226
223
  ]
227
224
  },
225
+ "SubnetId": {
226
+ "Ref": "VpcPublicSubnet2Subnet691E08A3"
227
+ },
228
228
  "Tags": [
229
229
  {
230
230
  "Key": "Name",
231
- "Value": "existingVpc/Vpc/PublicSubnet2"
231
+ "Value": "lamkin-existingVpc/Vpc/PublicSubnet2"
232
232
  }
233
233
  ]
234
234
  },
@@ -240,9 +240,6 @@
240
240
  "VpcPublicSubnet3SubnetBE12F0B6": {
241
241
  "Type": "AWS::EC2::Subnet",
242
242
  "Properties": {
243
- "VpcId": {
244
- "Ref": "Vpc8378EB38"
245
- },
246
243
  "AvailabilityZone": "test-region-1c",
247
244
  "CidrBlock": "10.0.64.0/19",
248
245
  "MapPublicIpOnLaunch": true,
@@ -257,9 +254,12 @@
257
254
  },
258
255
  {
259
256
  "Key": "Name",
260
- "Value": "existingVpc/Vpc/PublicSubnet3"
257
+ "Value": "lamkin-existingVpc/Vpc/PublicSubnet3"
261
258
  }
262
- ]
259
+ ],
260
+ "VpcId": {
261
+ "Ref": "Vpc8378EB38"
262
+ }
263
263
  },
264
264
  "Metadata": {
265
265
  "cfn_nag": {
@@ -275,15 +275,15 @@
275
275
  "VpcPublicSubnet3RouteTable93458DBB": {
276
276
  "Type": "AWS::EC2::RouteTable",
277
277
  "Properties": {
278
- "VpcId": {
279
- "Ref": "Vpc8378EB38"
280
- },
281
278
  "Tags": [
282
279
  {
283
280
  "Key": "Name",
284
- "Value": "existingVpc/Vpc/PublicSubnet3"
281
+ "Value": "lamkin-existingVpc/Vpc/PublicSubnet3"
285
282
  }
286
- ]
283
+ ],
284
+ "VpcId": {
285
+ "Ref": "Vpc8378EB38"
286
+ }
287
287
  }
288
288
  },
289
289
  "VpcPublicSubnet3RouteTableAssociation1F1EDF02": {
@@ -300,12 +300,12 @@
300
300
  "VpcPublicSubnet3DefaultRoute4697774F": {
301
301
  "Type": "AWS::EC2::Route",
302
302
  "Properties": {
303
- "RouteTableId": {
304
- "Ref": "VpcPublicSubnet3RouteTable93458DBB"
305
- },
306
303
  "DestinationCidrBlock": "0.0.0.0/0",
307
304
  "GatewayId": {
308
305
  "Ref": "VpcIGWD7BA715C"
306
+ },
307
+ "RouteTableId": {
308
+ "Ref": "VpcPublicSubnet3RouteTable93458DBB"
309
309
  }
310
310
  },
311
311
  "DependsOn": [
@@ -319,7 +319,7 @@
319
319
  "Tags": [
320
320
  {
321
321
  "Key": "Name",
322
- "Value": "existingVpc/Vpc/PublicSubnet3"
322
+ "Value": "lamkin-existingVpc/Vpc/PublicSubnet3"
323
323
  }
324
324
  ]
325
325
  }
@@ -327,19 +327,19 @@
327
327
  "VpcPublicSubnet3NATGateway7640CD1D": {
328
328
  "Type": "AWS::EC2::NatGateway",
329
329
  "Properties": {
330
- "SubnetId": {
331
- "Ref": "VpcPublicSubnet3SubnetBE12F0B6"
332
- },
333
330
  "AllocationId": {
334
331
  "Fn::GetAtt": [
335
332
  "VpcPublicSubnet3EIP3A666A23",
336
333
  "AllocationId"
337
334
  ]
338
335
  },
336
+ "SubnetId": {
337
+ "Ref": "VpcPublicSubnet3SubnetBE12F0B6"
338
+ },
339
339
  "Tags": [
340
340
  {
341
341
  "Key": "Name",
342
- "Value": "existingVpc/Vpc/PublicSubnet3"
342
+ "Value": "lamkin-existingVpc/Vpc/PublicSubnet3"
343
343
  }
344
344
  ]
345
345
  },
@@ -351,9 +351,6 @@
351
351
  "VpcPrivateSubnet1Subnet536B997A": {
352
352
  "Type": "AWS::EC2::Subnet",
353
353
  "Properties": {
354
- "VpcId": {
355
- "Ref": "Vpc8378EB38"
356
- },
357
354
  "AvailabilityZone": "test-region-1a",
358
355
  "CidrBlock": "10.0.96.0/19",
359
356
  "MapPublicIpOnLaunch": false,
@@ -368,23 +365,26 @@
368
365
  },
369
366
  {
370
367
  "Key": "Name",
371
- "Value": "existingVpc/Vpc/PrivateSubnet1"
368
+ "Value": "lamkin-existingVpc/Vpc/PrivateSubnet1"
372
369
  }
373
- ]
370
+ ],
371
+ "VpcId": {
372
+ "Ref": "Vpc8378EB38"
373
+ }
374
374
  }
375
375
  },
376
376
  "VpcPrivateSubnet1RouteTableB2C5B500": {
377
377
  "Type": "AWS::EC2::RouteTable",
378
378
  "Properties": {
379
- "VpcId": {
380
- "Ref": "Vpc8378EB38"
381
- },
382
379
  "Tags": [
383
380
  {
384
381
  "Key": "Name",
385
- "Value": "existingVpc/Vpc/PrivateSubnet1"
382
+ "Value": "lamkin-existingVpc/Vpc/PrivateSubnet1"
386
383
  }
387
- ]
384
+ ],
385
+ "VpcId": {
386
+ "Ref": "Vpc8378EB38"
387
+ }
388
388
  }
389
389
  },
390
390
  "VpcPrivateSubnet1RouteTableAssociation70C59FA6": {
@@ -401,21 +401,18 @@
401
401
  "VpcPrivateSubnet1DefaultRouteBE02A9ED": {
402
402
  "Type": "AWS::EC2::Route",
403
403
  "Properties": {
404
- "RouteTableId": {
405
- "Ref": "VpcPrivateSubnet1RouteTableB2C5B500"
406
- },
407
404
  "DestinationCidrBlock": "0.0.0.0/0",
408
405
  "NatGatewayId": {
409
406
  "Ref": "VpcPublicSubnet1NATGateway4D7517AA"
407
+ },
408
+ "RouteTableId": {
409
+ "Ref": "VpcPrivateSubnet1RouteTableB2C5B500"
410
410
  }
411
411
  }
412
412
  },
413
413
  "VpcPrivateSubnet2Subnet3788AAA1": {
414
414
  "Type": "AWS::EC2::Subnet",
415
415
  "Properties": {
416
- "VpcId": {
417
- "Ref": "Vpc8378EB38"
418
- },
419
416
  "AvailabilityZone": "test-region-1b",
420
417
  "CidrBlock": "10.0.128.0/19",
421
418
  "MapPublicIpOnLaunch": false,
@@ -430,23 +427,26 @@
430
427
  },
431
428
  {
432
429
  "Key": "Name",
433
- "Value": "existingVpc/Vpc/PrivateSubnet2"
430
+ "Value": "lamkin-existingVpc/Vpc/PrivateSubnet2"
434
431
  }
435
- ]
432
+ ],
433
+ "VpcId": {
434
+ "Ref": "Vpc8378EB38"
435
+ }
436
436
  }
437
437
  },
438
438
  "VpcPrivateSubnet2RouteTableA678073B": {
439
439
  "Type": "AWS::EC2::RouteTable",
440
440
  "Properties": {
441
- "VpcId": {
442
- "Ref": "Vpc8378EB38"
443
- },
444
441
  "Tags": [
445
442
  {
446
443
  "Key": "Name",
447
- "Value": "existingVpc/Vpc/PrivateSubnet2"
444
+ "Value": "lamkin-existingVpc/Vpc/PrivateSubnet2"
448
445
  }
449
- ]
446
+ ],
447
+ "VpcId": {
448
+ "Ref": "Vpc8378EB38"
449
+ }
450
450
  }
451
451
  },
452
452
  "VpcPrivateSubnet2RouteTableAssociationA89CAD56": {
@@ -463,21 +463,18 @@
463
463
  "VpcPrivateSubnet2DefaultRoute060D2087": {
464
464
  "Type": "AWS::EC2::Route",
465
465
  "Properties": {
466
- "RouteTableId": {
467
- "Ref": "VpcPrivateSubnet2RouteTableA678073B"
468
- },
469
466
  "DestinationCidrBlock": "0.0.0.0/0",
470
467
  "NatGatewayId": {
471
468
  "Ref": "VpcPublicSubnet2NATGateway9182C01D"
469
+ },
470
+ "RouteTableId": {
471
+ "Ref": "VpcPrivateSubnet2RouteTableA678073B"
472
472
  }
473
473
  }
474
474
  },
475
475
  "VpcPrivateSubnet3SubnetF258B56E": {
476
476
  "Type": "AWS::EC2::Subnet",
477
477
  "Properties": {
478
- "VpcId": {
479
- "Ref": "Vpc8378EB38"
480
- },
481
478
  "AvailabilityZone": "test-region-1c",
482
479
  "CidrBlock": "10.0.160.0/19",
483
480
  "MapPublicIpOnLaunch": false,
@@ -492,23 +489,26 @@
492
489
  },
493
490
  {
494
491
  "Key": "Name",
495
- "Value": "existingVpc/Vpc/PrivateSubnet3"
492
+ "Value": "lamkin-existingVpc/Vpc/PrivateSubnet3"
496
493
  }
497
- ]
494
+ ],
495
+ "VpcId": {
496
+ "Ref": "Vpc8378EB38"
497
+ }
498
498
  }
499
499
  },
500
500
  "VpcPrivateSubnet3RouteTableD98824C7": {
501
501
  "Type": "AWS::EC2::RouteTable",
502
502
  "Properties": {
503
- "VpcId": {
504
- "Ref": "Vpc8378EB38"
505
- },
506
503
  "Tags": [
507
504
  {
508
505
  "Key": "Name",
509
- "Value": "existingVpc/Vpc/PrivateSubnet3"
506
+ "Value": "lamkin-existingVpc/Vpc/PrivateSubnet3"
510
507
  }
511
- ]
508
+ ],
509
+ "VpcId": {
510
+ "Ref": "Vpc8378EB38"
511
+ }
512
512
  }
513
513
  },
514
514
  "VpcPrivateSubnet3RouteTableAssociation16BDDC43": {
@@ -525,12 +525,12 @@
525
525
  "VpcPrivateSubnet3DefaultRoute94B74F0D": {
526
526
  "Type": "AWS::EC2::Route",
527
527
  "Properties": {
528
- "RouteTableId": {
529
- "Ref": "VpcPrivateSubnet3RouteTableD98824C7"
530
- },
531
528
  "DestinationCidrBlock": "0.0.0.0/0",
532
529
  "NatGatewayId": {
533
530
  "Ref": "VpcPublicSubnet3NATGateway7640CD1D"
531
+ },
532
+ "RouteTableId": {
533
+ "Ref": "VpcPrivateSubnet3RouteTableD98824C7"
534
534
  }
535
535
  }
536
536
  },
@@ -540,7 +540,7 @@
540
540
  "Tags": [
541
541
  {
542
542
  "Key": "Name",
543
- "Value": "existingVpc/Vpc"
543
+ "Value": "lamkin-existingVpc/Vpc"
544
544
  }
545
545
  ]
546
546
  }
@@ -548,11 +548,11 @@
548
548
  "VpcVPCGWBF912B6E": {
549
549
  "Type": "AWS::EC2::VPCGatewayAttachment",
550
550
  "Properties": {
551
- "VpcId": {
552
- "Ref": "Vpc8378EB38"
553
- },
554
551
  "InternetGatewayId": {
555
552
  "Ref": "VpcIGWD7BA715C"
553
+ },
554
+ "VpcId": {
555
+ "Ref": "Vpc8378EB38"
556
556
  }
557
557
  }
558
558
  },
@@ -574,7 +574,7 @@
574
574
  "Tags": [
575
575
  {
576
576
  "Key": "Name",
577
- "Value": "existingVpc/Vpc"
577
+ "Value": "lamkin-existingVpc/Vpc/FlowLog"
578
578
  }
579
579
  ]
580
580
  }
@@ -626,7 +626,7 @@
626
626
  "Tags": [
627
627
  {
628
628
  "Key": "Name",
629
- "Value": "existingVpc/Vpc"
629
+ "Value": "lamkin-existingVpc/Vpc/FlowLog"
630
630
  }
631
631
  ]
632
632
  },
@@ -646,10 +646,6 @@
646
646
  "VpcFlowLog8FF33A73": {
647
647
  "Type": "AWS::EC2::FlowLog",
648
648
  "Properties": {
649
- "ResourceId": {
650
- "Ref": "Vpc8378EB38"
651
- },
652
- "ResourceType": "VPC",
653
649
  "DeliverLogsPermissionArn": {
654
650
  "Fn::GetAtt": [
655
651
  "VpcFlowLogIAMRole6A475D41",
@@ -660,10 +656,14 @@
660
656
  "LogGroupName": {
661
657
  "Ref": "VpcFlowLogLogGroup7B5C56B9"
662
658
  },
659
+ "ResourceId": {
660
+ "Ref": "Vpc8378EB38"
661
+ },
662
+ "ResourceType": "VPC",
663
663
  "Tags": [
664
664
  {
665
665
  "Key": "Name",
666
- "Value": "existingVpc/Vpc"
666
+ "Value": "lamkin-existingVpc/Vpc/FlowLog"
667
667
  }
668
668
  ],
669
669
  "TrafficType": "ALL"
@@ -672,6 +672,15 @@
672
672
  "VpcKINESISSTREAMSC07D91B5": {
673
673
  "Type": "AWS::EC2::VPCEndpoint",
674
674
  "Properties": {
675
+ "PrivateDnsEnabled": true,
676
+ "SecurityGroupIds": [
677
+ {
678
+ "Fn::GetAtt": [
679
+ "lamkinexistingVpcKINESISSTREAMSsecuritygroupC307369A",
680
+ "GroupId"
681
+ ]
682
+ }
683
+ ],
675
684
  "ServiceName": {
676
685
  "Fn::Join": [
677
686
  "",
@@ -684,18 +693,6 @@
684
693
  ]
685
694
  ]
686
695
  },
687
- "VpcId": {
688
- "Ref": "Vpc8378EB38"
689
- },
690
- "PrivateDnsEnabled": true,
691
- "SecurityGroupIds": [
692
- {
693
- "Fn::GetAtt": [
694
- "existingVpcKINESISSTREAMSsecuritygroupDE0E9DB9",
695
- "GroupId"
696
- ]
697
- }
698
- ],
699
696
  "SubnetIds": [
700
697
  {
701
698
  "Ref": "VpcPrivateSubnet1Subnet536B997A"
@@ -707,7 +704,10 @@
707
704
  "Ref": "VpcPrivateSubnet3SubnetF258B56E"
708
705
  }
709
706
  ],
710
- "VpcEndpointType": "Interface"
707
+ "VpcEndpointType": "Interface",
708
+ "VpcId": {
709
+ "Ref": "Vpc8378EB38"
710
+ }
711
711
  }
712
712
  },
713
713
  "testlambdakinesisstreamsLambdaFunctionServiceRole95206CF3": {
@@ -827,7 +827,7 @@
827
827
  "testlambdakinesisstreamsReplaceDefaultSecurityGroupsecuritygroupFB22266C": {
828
828
  "Type": "AWS::EC2::SecurityGroup",
829
829
  "Properties": {
830
- "GroupDescription": "existingVpc/test-lambda-kinesisstreams/ReplaceDefaultSecurityGroup-security-group",
830
+ "GroupDescription": "lamkin-existingVpc/test-lambda-kinesisstreams/ReplaceDefaultSecurityGroup-security-group",
831
831
  "SecurityGroupEgress": [
832
832
  {
833
833
  "CidrIp": "0.0.0.0/0",
@@ -863,12 +863,6 @@
863
863
  },
864
864
  "S3Key": "c7dc0cc1b24bda1d2a5345f61897eee32184906649fdb1de93853c512e129dbf.zip"
865
865
  },
866
- "Role": {
867
- "Fn::GetAtt": [
868
- "testlambdakinesisstreamsLambdaFunctionServiceRole95206CF3",
869
- "Arn"
870
- ]
871
- },
872
866
  "Environment": {
873
867
  "Variables": {
874
868
  "KINESIS_DATASTREAM_NAME": {
@@ -877,6 +871,12 @@
877
871
  }
878
872
  },
879
873
  "Handler": "index.handler",
874
+ "Role": {
875
+ "Fn::GetAtt": [
876
+ "testlambdakinesisstreamsLambdaFunctionServiceRole95206CF3",
877
+ "Arn"
878
+ ]
879
+ },
880
880
  "Runtime": "nodejs18.x",
881
881
  "TracingConfig": {
882
882
  "Mode": "Active"
@@ -946,9 +946,9 @@
946
946
  "testlambdakinesisstreamsKinesisStreamGetRecordsIteratorAgeAlarmC4A0FF00": {
947
947
  "Type": "AWS::CloudWatch::Alarm",
948
948
  "Properties": {
949
+ "AlarmDescription": "Consumer Record Processing Falling Behind, there is risk for data loss due to record expiration.",
949
950
  "ComparisonOperator": "GreaterThanOrEqualToThreshold",
950
951
  "EvaluationPeriods": 1,
951
- "AlarmDescription": "Consumer Record Processing Falling Behind, there is risk for data loss due to record expiration.",
952
952
  "MetricName": "GetRecords.IteratorAgeMilliseconds",
953
953
  "Namespace": "AWS/Kinesis",
954
954
  "Period": 300,
@@ -959,9 +959,9 @@
959
959
  "testlambdakinesisstreamsKinesisStreamReadProvisionedThroughputExceededAlarm9732E188": {
960
960
  "Type": "AWS::CloudWatch::Alarm",
961
961
  "Properties": {
962
+ "AlarmDescription": "Consumer Application is Reading at a Slower Rate Than Expected.",
962
963
  "ComparisonOperator": "GreaterThanThreshold",
963
964
  "EvaluationPeriods": 1,
964
- "AlarmDescription": "Consumer Application is Reading at a Slower Rate Than Expected.",
965
965
  "MetricName": "ReadProvisionedThroughputExceeded",
966
966
  "Namespace": "AWS/Kinesis",
967
967
  "Period": 300,
@@ -969,10 +969,10 @@
969
969
  "Threshold": 0
970
970
  }
971
971
  },
972
- "existingVpcKINESISSTREAMSsecuritygroupDE0E9DB9": {
972
+ "lamkinexistingVpcKINESISSTREAMSsecuritygroupC307369A": {
973
973
  "Type": "AWS::EC2::SecurityGroup",
974
974
  "Properties": {
975
- "GroupDescription": "existingVpc/existingVpc-KINESIS_STREAMS-security-group",
975
+ "GroupDescription": "lamkin-existingVpc/lamkin-existingVpc-KINESIS_STREAMS-security-group",
976
976
  "SecurityGroupEgress": [
977
977
  {
978
978
  "CidrIp": "0.0.0.0/0",
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
6
+ * with the License. A copy of the License is located at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
11
+ * OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
12
+ * and limitations under the License.
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ /// !cdk-integ *
16
+ const aws_cdk_lib_1 = require("aws-cdk-lib");
17
+ const lib_1 = require("../lib");
18
+ const core_1 = require("@aws-solutions-constructs/core");
19
+ const lambda = require("aws-cdk-lib/aws-lambda");
20
+ const app = new aws_cdk_lib_1.App();
21
+ const stack = new aws_cdk_lib_1.Stack(app, core_1.generateIntegStackName(__filename));
22
+ const existingVpc = core_1.buildVpc(stack, {
23
+ defaultVpcProps: core_1.DefaultPublicPrivateVpcProps()
24
+ });
25
+ new lib_1.LambdaToKinesisStreams(stack, 'test-lambda-kinesisstreams', {
26
+ lambdaFunctionProps: {
27
+ code: lambda.Code.fromAsset(`${__dirname}/lambda`),
28
+ runtime: lambda.Runtime.NODEJS_18_X,
29
+ handler: 'index.handler'
30
+ },
31
+ existingVpc
32
+ });
33
+ app.synth();
34
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubGFta2luLWV4aXN0aW5nVnBjLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcubGFta2luLWV4aXN0aW5nVnBjLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7Ozs7Ozs7Ozs7R0FXRzs7QUFFSCxnQkFBZ0I7QUFDaEIsNkNBQXlDO0FBQ3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