@aws-solutions-constructs/aws-lambda-kinesisstreams 2.79.1 → 2.81.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 (59) hide show
  1. package/.jsii +43 -43
  2. package/lib/index.js +1 -1
  3. package/package.json +6 -6
  4. package/test/integ.lamkin-existingLambda.js.snapshot/cdk.out +1 -1
  5. package/test/integ.lamkin-existingLambda.js.snapshot/integ.json +1 -1
  6. package/test/integ.lamkin-existingLambda.js.snapshot/lamkin-existingLambda.assets.json +3 -3
  7. package/test/integ.lamkin-existingLambda.js.snapshot/lamkin-existingLambda.template.json +24 -18
  8. package/test/integ.lamkin-existingLambda.js.snapshot/lamkinexistingLambdaIntegDefaultTestDeployAssertD62E9419.assets.json +1 -1
  9. package/test/integ.lamkin-existingLambda.js.snapshot/manifest.json +199 -3
  10. package/test/integ.lamkin-existingLambda.js.snapshot/tree.json +1 -413
  11. package/test/integ.lamkin-existingStream.js.snapshot/cdk.out +1 -1
  12. package/test/integ.lamkin-existingStream.js.snapshot/integ.json +1 -1
  13. package/test/integ.lamkin-existingStream.js.snapshot/lamkin-existingStream.assets.json +3 -3
  14. package/test/integ.lamkin-existingStream.js.snapshot/lamkin-existingStream.template.json +24 -18
  15. package/test/integ.lamkin-existingStream.js.snapshot/lamkinexistingStreamIntegDefaultTestDeployAssert2681B9A2.assets.json +1 -1
  16. package/test/integ.lamkin-existingStream.js.snapshot/manifest.json +200 -3
  17. package/test/integ.lamkin-existingStream.js.snapshot/tree.json +1 -415
  18. package/test/integ.lamkin-existingStreamWithCmk.js.snapshot/cdk.out +1 -1
  19. package/test/integ.lamkin-existingStreamWithCmk.js.snapshot/integ.json +1 -1
  20. package/test/integ.lamkin-existingStreamWithCmk.js.snapshot/lamkin-existingStreamWithCmk.assets.json +3 -3
  21. package/test/integ.lamkin-existingStreamWithCmk.js.snapshot/lamkin-existingStreamWithCmk.template.json +24 -18
  22. package/test/integ.lamkin-existingStreamWithCmk.js.snapshot/lamkinexistingStreamWithCmkIntegDefaultTestDeployAssert6EDF4045.assets.json +1 -1
  23. package/test/integ.lamkin-existingStreamWithCmk.js.snapshot/manifest.json +239 -3
  24. package/test/integ.lamkin-existingStreamWithCmk.js.snapshot/tree.json +1 -485
  25. package/test/integ.lamkin-existingVpc.js.snapshot/cdk.out +1 -1
  26. package/test/integ.lamkin-existingVpc.js.snapshot/integ.json +1 -1
  27. package/test/integ.lamkin-existingVpc.js.snapshot/lamkin-existingVpc.assets.json +3 -3
  28. package/test/integ.lamkin-existingVpc.js.snapshot/lamkin-existingVpc.template.json +35 -7
  29. package/test/integ.lamkin-existingVpc.js.snapshot/lamkinexistingVpcIntegDefaultTestDeployAssertB97E47BA.assets.json +1 -1
  30. package/test/integ.lamkin-existingVpc.js.snapshot/manifest.json +533 -3
  31. package/test/integ.lamkin-existingVpc.js.snapshot/tree.json +1 -1478
  32. package/test/integ.lamkin-newStreamFromProps.js.snapshot/cdk.out +1 -1
  33. package/test/integ.lamkin-newStreamFromProps.js.snapshot/integ.json +1 -1
  34. package/test/integ.lamkin-newStreamFromProps.js.snapshot/lamkin-newStreamFromProps.assets.json +3 -3
  35. package/test/integ.lamkin-newStreamFromProps.js.snapshot/lamkin-newStreamFromProps.template.json +24 -18
  36. package/test/integ.lamkin-newStreamFromProps.js.snapshot/lamkinnewStreamFromPropsIntegDefaultTestDeployAssertC2946F34.assets.json +1 -1
  37. package/test/integ.lamkin-newStreamFromProps.js.snapshot/manifest.json +200 -3
  38. package/test/integ.lamkin-newStreamFromProps.js.snapshot/tree.json +1 -415
  39. package/test/integ.lamkin-newVpc.js.snapshot/cdk.out +1 -1
  40. package/test/integ.lamkin-newVpc.js.snapshot/integ.json +1 -1
  41. package/test/integ.lamkin-newVpc.js.snapshot/lamkin-newVpc.assets.json +3 -3
  42. package/test/integ.lamkin-newVpc.js.snapshot/lamkin-newVpc.template.json +33 -7
  43. package/test/integ.lamkin-newVpc.js.snapshot/lamkinnewVpcIntegDefaultTestDeployAssert16AC3D59.assets.json +1 -1
  44. package/test/integ.lamkin-newVpc.js.snapshot/manifest.json +464 -3
  45. package/test/integ.lamkin-newVpc.js.snapshot/tree.json +1 -1066
  46. package/test/integ.lamkin-newVpcFromProps.js.snapshot/cdk.out +1 -1
  47. package/test/integ.lamkin-newVpcFromProps.js.snapshot/integ.json +1 -1
  48. package/test/integ.lamkin-newVpcFromProps.js.snapshot/lamkin-newVpcFromProps.assets.json +3 -3
  49. package/test/integ.lamkin-newVpcFromProps.js.snapshot/lamkin-newVpcFromProps.template.json +32 -7
  50. package/test/integ.lamkin-newVpcFromProps.js.snapshot/lamkinnewVpcFromPropsIntegDefaultTestDeployAssert95FE0487.assets.json +1 -1
  51. package/test/integ.lamkin-newVpcFromProps.js.snapshot/manifest.json +441 -3
  52. package/test/integ.lamkin-newVpcFromProps.js.snapshot/tree.json +1 -961
  53. package/test/integ.lamkin-noArguments.js.snapshot/cdk.out +1 -1
  54. package/test/integ.lamkin-noArguments.js.snapshot/integ.json +1 -1
  55. package/test/integ.lamkin-noArguments.js.snapshot/lamkin-noArguments.assets.json +3 -3
  56. package/test/integ.lamkin-noArguments.js.snapshot/lamkin-noArguments.template.json +24 -18
  57. package/test/integ.lamkin-noArguments.js.snapshot/lamkinnoArgumentsIntegDefaultTestDeployAssertC0CED4B2.assets.json +1 -1
  58. package/test/integ.lamkin-noArguments.js.snapshot/manifest.json +199 -3
  59. package/test/integ.lamkin-noArguments.js.snapshot/tree.json +1 -413
@@ -1,485 +1 @@
1
- {
2
- "version": "tree-0.1",
3
- "tree": {
4
- "id": "App",
5
- "path": "",
6
- "children": {
7
- "lamkin-existingStreamWithCmk": {
8
- "id": "lamkin-existingStreamWithCmk",
9
- "path": "lamkin-existingStreamWithCmk",
10
- "children": {
11
- "test-key": {
12
- "id": "test-key",
13
- "path": "lamkin-existingStreamWithCmk/test-key",
14
- "children": {
15
- "Resource": {
16
- "id": "Resource",
17
- "path": "lamkin-existingStreamWithCmk/test-key/Resource",
18
- "attributes": {
19
- "aws:cdk:cloudformation:type": "AWS::KMS::Key",
20
- "aws:cdk:cloudformation:props": {
21
- "enableKeyRotation": true,
22
- "keyPolicy": {
23
- "Statement": [
24
- {
25
- "Action": "kms:*",
26
- "Effect": "Allow",
27
- "Principal": {
28
- "AWS": {
29
- "Fn::Join": [
30
- "",
31
- [
32
- "arn:",
33
- {
34
- "Ref": "AWS::Partition"
35
- },
36
- ":iam::",
37
- {
38
- "Ref": "AWS::AccountId"
39
- },
40
- ":root"
41
- ]
42
- ]
43
- }
44
- },
45
- "Resource": "*"
46
- }
47
- ],
48
- "Version": "2012-10-17"
49
- }
50
- }
51
- },
52
- "constructInfo": {
53
- "fqn": "aws-cdk-lib.aws_kms.CfnKey",
54
- "version": "2.150.0"
55
- }
56
- }
57
- },
58
- "constructInfo": {
59
- "fqn": "aws-cdk-lib.aws_kms.Key",
60
- "version": "2.150.0"
61
- }
62
- },
63
- "test-stream": {
64
- "id": "test-stream",
65
- "path": "lamkin-existingStreamWithCmk/test-stream",
66
- "children": {
67
- "Resource": {
68
- "id": "Resource",
69
- "path": "lamkin-existingStreamWithCmk/test-stream/Resource",
70
- "attributes": {
71
- "aws:cdk:cloudformation:type": "AWS::Kinesis::Stream",
72
- "aws:cdk:cloudformation:props": {
73
- "retentionPeriodHours": 24,
74
- "shardCount": 1,
75
- "streamEncryption": {
76
- "encryptionType": "KMS",
77
- "keyId": {
78
- "Fn::GetAtt": [
79
- "testkey784D0285",
80
- "Arn"
81
- ]
82
- }
83
- }
84
- }
85
- },
86
- "constructInfo": {
87
- "fqn": "aws-cdk-lib.aws_kinesis.CfnStream",
88
- "version": "2.150.0"
89
- }
90
- }
91
- },
92
- "constructInfo": {
93
- "fqn": "aws-cdk-lib.aws_kinesis.Stream",
94
- "version": "2.150.0"
95
- }
96
- },
97
- "test-lambda-kinesisstreams": {
98
- "id": "test-lambda-kinesisstreams",
99
- "path": "lamkin-existingStreamWithCmk/test-lambda-kinesisstreams",
100
- "children": {
101
- "LambdaFunctionServiceRole": {
102
- "id": "LambdaFunctionServiceRole",
103
- "path": "lamkin-existingStreamWithCmk/test-lambda-kinesisstreams/LambdaFunctionServiceRole",
104
- "children": {
105
- "ImportLambdaFunctionServiceRole": {
106
- "id": "ImportLambdaFunctionServiceRole",
107
- "path": "lamkin-existingStreamWithCmk/test-lambda-kinesisstreams/LambdaFunctionServiceRole/ImportLambdaFunctionServiceRole",
108
- "constructInfo": {
109
- "fqn": "aws-cdk-lib.Resource",
110
- "version": "2.150.0"
111
- }
112
- },
113
- "Resource": {
114
- "id": "Resource",
115
- "path": "lamkin-existingStreamWithCmk/test-lambda-kinesisstreams/LambdaFunctionServiceRole/Resource",
116
- "attributes": {
117
- "aws:cdk:cloudformation:type": "AWS::IAM::Role",
118
- "aws:cdk:cloudformation:props": {
119
- "assumeRolePolicyDocument": {
120
- "Statement": [
121
- {
122
- "Action": "sts:AssumeRole",
123
- "Effect": "Allow",
124
- "Principal": {
125
- "Service": "lambda.amazonaws.com"
126
- }
127
- }
128
- ],
129
- "Version": "2012-10-17"
130
- },
131
- "policies": [
132
- {
133
- "policyName": "LambdaFunctionServiceRolePolicy",
134
- "policyDocument": {
135
- "Statement": [
136
- {
137
- "Action": [
138
- "logs:CreateLogGroup",
139
- "logs:CreateLogStream",
140
- "logs:PutLogEvents"
141
- ],
142
- "Effect": "Allow",
143
- "Resource": {
144
- "Fn::Join": [
145
- "",
146
- [
147
- "arn:",
148
- {
149
- "Ref": "AWS::Partition"
150
- },
151
- ":logs:",
152
- {
153
- "Ref": "AWS::Region"
154
- },
155
- ":",
156
- {
157
- "Ref": "AWS::AccountId"
158
- },
159
- ":log-group:/aws/lambda/*"
160
- ]
161
- ]
162
- }
163
- }
164
- ],
165
- "Version": "2012-10-17"
166
- }
167
- }
168
- ]
169
- }
170
- },
171
- "constructInfo": {
172
- "fqn": "aws-cdk-lib.aws_iam.CfnRole",
173
- "version": "2.150.0"
174
- }
175
- },
176
- "DefaultPolicy": {
177
- "id": "DefaultPolicy",
178
- "path": "lamkin-existingStreamWithCmk/test-lambda-kinesisstreams/LambdaFunctionServiceRole/DefaultPolicy",
179
- "children": {
180
- "Resource": {
181
- "id": "Resource",
182
- "path": "lamkin-existingStreamWithCmk/test-lambda-kinesisstreams/LambdaFunctionServiceRole/DefaultPolicy/Resource",
183
- "attributes": {
184
- "aws:cdk:cloudformation:type": "AWS::IAM::Policy",
185
- "aws:cdk:cloudformation:props": {
186
- "policyDocument": {
187
- "Statement": [
188
- {
189
- "Action": [
190
- "xray:PutTelemetryRecords",
191
- "xray:PutTraceSegments"
192
- ],
193
- "Effect": "Allow",
194
- "Resource": "*"
195
- },
196
- {
197
- "Action": [
198
- "kinesis:ListShards",
199
- "kinesis:PutRecord",
200
- "kinesis:PutRecords"
201
- ],
202
- "Effect": "Allow",
203
- "Resource": {
204
- "Fn::GetAtt": [
205
- "teststream04374A09",
206
- "Arn"
207
- ]
208
- }
209
- },
210
- {
211
- "Action": [
212
- "kms:Decrypt",
213
- "kms:Encrypt",
214
- "kms:GenerateDataKey*",
215
- "kms:ReEncrypt*"
216
- ],
217
- "Effect": "Allow",
218
- "Resource": {
219
- "Fn::GetAtt": [
220
- "testkey784D0285",
221
- "Arn"
222
- ]
223
- }
224
- }
225
- ],
226
- "Version": "2012-10-17"
227
- },
228
- "policyName": "testlambdakinesisstreamsLambdaFunctionServiceRoleDefaultPolicyED972043",
229
- "roles": [
230
- {
231
- "Ref": "testlambdakinesisstreamsLambdaFunctionServiceRole95206CF3"
232
- }
233
- ]
234
- }
235
- },
236
- "constructInfo": {
237
- "fqn": "aws-cdk-lib.aws_iam.CfnPolicy",
238
- "version": "2.150.0"
239
- }
240
- }
241
- },
242
- "constructInfo": {
243
- "fqn": "aws-cdk-lib.aws_iam.Policy",
244
- "version": "2.150.0"
245
- }
246
- }
247
- },
248
- "constructInfo": {
249
- "fqn": "aws-cdk-lib.aws_iam.Role",
250
- "version": "2.150.0"
251
- }
252
- },
253
- "LambdaFunction": {
254
- "id": "LambdaFunction",
255
- "path": "lamkin-existingStreamWithCmk/test-lambda-kinesisstreams/LambdaFunction",
256
- "children": {
257
- "Code": {
258
- "id": "Code",
259
- "path": "lamkin-existingStreamWithCmk/test-lambda-kinesisstreams/LambdaFunction/Code",
260
- "children": {
261
- "Stage": {
262
- "id": "Stage",
263
- "path": "lamkin-existingStreamWithCmk/test-lambda-kinesisstreams/LambdaFunction/Code/Stage",
264
- "constructInfo": {
265
- "fqn": "aws-cdk-lib.AssetStaging",
266
- "version": "2.150.0"
267
- }
268
- },
269
- "AssetBucket": {
270
- "id": "AssetBucket",
271
- "path": "lamkin-existingStreamWithCmk/test-lambda-kinesisstreams/LambdaFunction/Code/AssetBucket",
272
- "constructInfo": {
273
- "fqn": "aws-cdk-lib.aws_s3.BucketBase",
274
- "version": "2.150.0"
275
- }
276
- }
277
- },
278
- "constructInfo": {
279
- "fqn": "aws-cdk-lib.aws_s3_assets.Asset",
280
- "version": "2.150.0"
281
- }
282
- },
283
- "Resource": {
284
- "id": "Resource",
285
- "path": "lamkin-existingStreamWithCmk/test-lambda-kinesisstreams/LambdaFunction/Resource",
286
- "attributes": {
287
- "aws:cdk:cloudformation:type": "AWS::Lambda::Function",
288
- "aws:cdk:cloudformation:props": {
289
- "code": {
290
- "s3Bucket": {
291
- "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
292
- },
293
- "s3Key": "c7dc0cc1b24bda1d2a5345f61897eee32184906649fdb1de93853c512e129dbf.zip"
294
- },
295
- "environment": {
296
- "variables": {
297
- "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1",
298
- "KINESIS_DATASTREAM_NAME": {
299
- "Ref": "teststream04374A09"
300
- }
301
- }
302
- },
303
- "handler": "index.handler",
304
- "role": {
305
- "Fn::GetAtt": [
306
- "testlambdakinesisstreamsLambdaFunctionServiceRole95206CF3",
307
- "Arn"
308
- ]
309
- },
310
- "runtime": "nodejs20.x",
311
- "tracingConfig": {
312
- "mode": "Active"
313
- }
314
- }
315
- },
316
- "constructInfo": {
317
- "fqn": "aws-cdk-lib.aws_lambda.CfnFunction",
318
- "version": "2.150.0"
319
- }
320
- }
321
- },
322
- "constructInfo": {
323
- "fqn": "aws-cdk-lib.aws_lambda.Function",
324
- "version": "2.150.0"
325
- }
326
- },
327
- "KinesisStreamGetRecordsIteratorAgeAlarm": {
328
- "id": "KinesisStreamGetRecordsIteratorAgeAlarm",
329
- "path": "lamkin-existingStreamWithCmk/test-lambda-kinesisstreams/KinesisStreamGetRecordsIteratorAgeAlarm",
330
- "children": {
331
- "Resource": {
332
- "id": "Resource",
333
- "path": "lamkin-existingStreamWithCmk/test-lambda-kinesisstreams/KinesisStreamGetRecordsIteratorAgeAlarm/Resource",
334
- "attributes": {
335
- "aws:cdk:cloudformation:type": "AWS::CloudWatch::Alarm",
336
- "aws:cdk:cloudformation:props": {
337
- "alarmDescription": "Consumer Record Processing Falling Behind, there is risk for data loss due to record expiration.",
338
- "comparisonOperator": "GreaterThanOrEqualToThreshold",
339
- "evaluationPeriods": 1,
340
- "metricName": "GetRecords.IteratorAgeMilliseconds",
341
- "namespace": "AWS/Kinesis",
342
- "period": 300,
343
- "statistic": "Maximum",
344
- "threshold": 43200000
345
- }
346
- },
347
- "constructInfo": {
348
- "fqn": "aws-cdk-lib.aws_cloudwatch.CfnAlarm",
349
- "version": "2.150.0"
350
- }
351
- }
352
- },
353
- "constructInfo": {
354
- "fqn": "aws-cdk-lib.aws_cloudwatch.Alarm",
355
- "version": "2.150.0"
356
- }
357
- },
358
- "KinesisStreamReadProvisionedThroughputExceededAlarm": {
359
- "id": "KinesisStreamReadProvisionedThroughputExceededAlarm",
360
- "path": "lamkin-existingStreamWithCmk/test-lambda-kinesisstreams/KinesisStreamReadProvisionedThroughputExceededAlarm",
361
- "children": {
362
- "Resource": {
363
- "id": "Resource",
364
- "path": "lamkin-existingStreamWithCmk/test-lambda-kinesisstreams/KinesisStreamReadProvisionedThroughputExceededAlarm/Resource",
365
- "attributes": {
366
- "aws:cdk:cloudformation:type": "AWS::CloudWatch::Alarm",
367
- "aws:cdk:cloudformation:props": {
368
- "alarmDescription": "Consumer Application is Reading at a Slower Rate Than Expected.",
369
- "comparisonOperator": "GreaterThanThreshold",
370
- "evaluationPeriods": 1,
371
- "metricName": "ReadProvisionedThroughputExceeded",
372
- "namespace": "AWS/Kinesis",
373
- "period": 300,
374
- "statistic": "Average",
375
- "threshold": 0
376
- }
377
- },
378
- "constructInfo": {
379
- "fqn": "aws-cdk-lib.aws_cloudwatch.CfnAlarm",
380
- "version": "2.150.0"
381
- }
382
- }
383
- },
384
- "constructInfo": {
385
- "fqn": "aws-cdk-lib.aws_cloudwatch.Alarm",
386
- "version": "2.150.0"
387
- }
388
- }
389
- },
390
- "constructInfo": {
391
- "fqn": "@aws-solutions-constructs/aws-lambda-kinesisstreams.LambdaToKinesisStreams",
392
- "version": "2.63.0"
393
- }
394
- },
395
- "Integ": {
396
- "id": "Integ",
397
- "path": "lamkin-existingStreamWithCmk/Integ",
398
- "children": {
399
- "DefaultTest": {
400
- "id": "DefaultTest",
401
- "path": "lamkin-existingStreamWithCmk/Integ/DefaultTest",
402
- "children": {
403
- "Default": {
404
- "id": "Default",
405
- "path": "lamkin-existingStreamWithCmk/Integ/DefaultTest/Default",
406
- "constructInfo": {
407
- "fqn": "constructs.Construct",
408
- "version": "10.3.0"
409
- }
410
- },
411
- "DeployAssert": {
412
- "id": "DeployAssert",
413
- "path": "lamkin-existingStreamWithCmk/Integ/DefaultTest/DeployAssert",
414
- "children": {
415
- "BootstrapVersion": {
416
- "id": "BootstrapVersion",
417
- "path": "lamkin-existingStreamWithCmk/Integ/DefaultTest/DeployAssert/BootstrapVersion",
418
- "constructInfo": {
419
- "fqn": "aws-cdk-lib.CfnParameter",
420
- "version": "2.150.0"
421
- }
422
- },
423
- "CheckBootstrapVersion": {
424
- "id": "CheckBootstrapVersion",
425
- "path": "lamkin-existingStreamWithCmk/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
426
- "constructInfo": {
427
- "fqn": "aws-cdk-lib.CfnRule",
428
- "version": "2.150.0"
429
- }
430
- }
431
- },
432
- "constructInfo": {
433
- "fqn": "aws-cdk-lib.Stack",
434
- "version": "2.150.0"
435
- }
436
- }
437
- },
438
- "constructInfo": {
439
- "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
440
- "version": "2.150.0-alpha.0"
441
- }
442
- }
443
- },
444
- "constructInfo": {
445
- "fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
446
- "version": "2.150.0-alpha.0"
447
- }
448
- },
449
- "BootstrapVersion": {
450
- "id": "BootstrapVersion",
451
- "path": "lamkin-existingStreamWithCmk/BootstrapVersion",
452
- "constructInfo": {
453
- "fqn": "aws-cdk-lib.CfnParameter",
454
- "version": "2.150.0"
455
- }
456
- },
457
- "CheckBootstrapVersion": {
458
- "id": "CheckBootstrapVersion",
459
- "path": "lamkin-existingStreamWithCmk/CheckBootstrapVersion",
460
- "constructInfo": {
461
- "fqn": "aws-cdk-lib.CfnRule",
462
- "version": "2.150.0"
463
- }
464
- }
465
- },
466
- "constructInfo": {
467
- "fqn": "aws-cdk-lib.Stack",
468
- "version": "2.150.0"
469
- }
470
- },
471
- "Tree": {
472
- "id": "Tree",
473
- "path": "Tree",
474
- "constructInfo": {
475
- "fqn": "constructs.Construct",
476
- "version": "10.3.0"
477
- }
478
- }
479
- },
480
- "constructInfo": {
481
- "fqn": "aws-cdk-lib.App",
482
- "version": "2.150.0"
483
- }
484
- }
485
- }
1
+ {"version":"tree-0.1","tree":{"id":"App","path":"","children":{"lamkin-existingStreamWithCmk":{"id":"lamkin-existingStreamWithCmk","path":"lamkin-existingStreamWithCmk","children":{"test-key":{"id":"test-key","path":"lamkin-existingStreamWithCmk/test-key","children":{"Resource":{"id":"Resource","path":"lamkin-existingStreamWithCmk/test-key/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::KMS::Key","aws:cdk:cloudformation:props":{"enableKeyRotation":true,"keyPolicy":{"Statement":[{"Action":"kms:*","Effect":"Allow","Principal":{"AWS":{"Fn::Join":["",["arn:",{"Ref":"AWS::Partition"},":iam::",{"Ref":"AWS::AccountId"},":root"]]}},"Resource":"*"}],"Version":"2012-10-17"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_kms.CfnKey","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_kms.Key","version":"2.186.0","metadata":[{"enableKeyRotation":true}]}},"test-stream":{"id":"test-stream","path":"lamkin-existingStreamWithCmk/test-stream","children":{"Resource":{"id":"Resource","path":"lamkin-existingStreamWithCmk/test-stream/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::Kinesis::Stream","aws:cdk:cloudformation:props":{"retentionPeriodHours":24,"shardCount":1,"streamEncryption":{"encryptionType":"KMS","keyId":{"Fn::GetAtt":["testkey784D0285","Arn"]}}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_kinesis.CfnStream","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_kinesis.Stream","version":"2.186.0","metadata":[{"encryptionKey":"*"}]}},"test-lambda-kinesisstreams":{"id":"test-lambda-kinesisstreams","path":"lamkin-existingStreamWithCmk/test-lambda-kinesisstreams","children":{"LambdaFunctionServiceRole":{"id":"LambdaFunctionServiceRole","path":"lamkin-existingStreamWithCmk/test-lambda-kinesisstreams/LambdaFunctionServiceRole","children":{"ImportLambdaFunctionServiceRole":{"id":"ImportLambdaFunctionServiceRole","path":"lamkin-existingStreamWithCmk/test-lambda-kinesisstreams/LambdaFunctionServiceRole/ImportLambdaFunctionServiceRole","constructInfo":{"fqn":"aws-cdk-lib.Resource","version":"2.186.0","metadata":["*"]}},"Resource":{"id":"Resource","path":"lamkin-existingStreamWithCmk/test-lambda-kinesisstreams/LambdaFunctionServiceRole/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::IAM::Role","aws:cdk:cloudformation:props":{"assumeRolePolicyDocument":{"Statement":[{"Action":"sts:AssumeRole","Effect":"Allow","Principal":{"Service":"lambda.amazonaws.com"}}],"Version":"2012-10-17"},"policies":[{"policyName":"LambdaFunctionServiceRolePolicy","policyDocument":{"Statement":[{"Action":["logs:CreateLogGroup","logs:CreateLogStream","logs:PutLogEvents"],"Effect":"Allow","Resource":{"Fn::Join":["",["arn:",{"Ref":"AWS::Partition"},":logs:",{"Ref":"AWS::Region"},":",{"Ref":"AWS::AccountId"},":log-group:/aws/lambda/*"]]}}],"Version":"2012-10-17"}}]}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.CfnRole","version":"2.186.0"}},"DefaultPolicy":{"id":"DefaultPolicy","path":"lamkin-existingStreamWithCmk/test-lambda-kinesisstreams/LambdaFunctionServiceRole/DefaultPolicy","children":{"Resource":{"id":"Resource","path":"lamkin-existingStreamWithCmk/test-lambda-kinesisstreams/LambdaFunctionServiceRole/DefaultPolicy/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::IAM::Policy","aws:cdk:cloudformation:props":{"policyDocument":{"Statement":[{"Action":["kinesis:ListShards","kinesis:PutRecord","kinesis:PutRecords"],"Effect":"Allow","Resource":{"Fn::GetAtt":["teststream04374A09","Arn"]}},{"Action":["kms:Decrypt","kms:Encrypt","kms:GenerateDataKey*","kms:ReEncrypt*"],"Effect":"Allow","Resource":{"Fn::GetAtt":["testkey784D0285","Arn"]}}],"Version":"2012-10-17"},"policyName":"testlambdakinesisstreamsLambdaFunctionServiceRoleDefaultPolicyED972043","roles":[{"Ref":"testlambdakinesisstreamsLambdaFunctionServiceRole95206CF3"}]}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.CfnPolicy","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.Policy","version":"2.186.0","metadata":["*",{"attachToRole":["*"]},{"attachToRole":["*"]},{"addStatements":[{}]},{"addStatements":[{}]},{"addStatements":[{}]}]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.Role","version":"2.186.0","metadata":[{"assumedBy":{"principalAccount":"*","assumeRoleAction":"*"},"inlinePolicies":"*"},{"attachInlinePolicy":["*"]},{"attachInlinePolicy":["*"]},{"addToPrincipalPolicy":[{}]},{"attachInlinePolicy":["*"]},{"attachInlinePolicy":["*"]},{"addToPrincipalPolicy":[{}]},{"addToPrincipalPolicy":[{}]}]}},"LambdaFunction":{"id":"LambdaFunction","path":"lamkin-existingStreamWithCmk/test-lambda-kinesisstreams/LambdaFunction","children":{"Code":{"id":"Code","path":"lamkin-existingStreamWithCmk/test-lambda-kinesisstreams/LambdaFunction/Code","children":{"Stage":{"id":"Stage","path":"lamkin-existingStreamWithCmk/test-lambda-kinesisstreams/LambdaFunction/Code/Stage","constructInfo":{"fqn":"aws-cdk-lib.AssetStaging","version":"2.186.0"}},"AssetBucket":{"id":"AssetBucket","path":"lamkin-existingStreamWithCmk/test-lambda-kinesisstreams/LambdaFunction/Code/AssetBucket","constructInfo":{"fqn":"aws-cdk-lib.aws_s3.BucketBase","version":"2.186.0","metadata":[]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3_assets.Asset","version":"2.186.0"}},"Resource":{"id":"Resource","path":"lamkin-existingStreamWithCmk/test-lambda-kinesisstreams/LambdaFunction/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::Lambda::Function","aws:cdk:cloudformation:props":{"code":{"s3Bucket":{"Fn::Sub":"cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"},"s3Key":"c7dc0cc1b24bda1d2a5345f61897eee32184906649fdb1de93853c512e129dbf.zip"},"environment":{"variables":{"AWS_NODEJS_CONNECTION_REUSE_ENABLED":"1","KINESIS_DATASTREAM_NAME":{"Ref":"teststream04374A09"}}},"handler":"index.handler","role":{"Fn::GetAtt":["testlambdakinesisstreamsLambdaFunctionServiceRole95206CF3","Arn"]},"runtime":"nodejs20.x","tracingConfig":{"mode":"Active"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_lambda.CfnFunction","version":"2.186.0"}},"inlinePolicyAddedToExecutionRole-0":{"id":"inlinePolicyAddedToExecutionRole-0","path":"lamkin-existingStreamWithCmk/test-lambda-kinesisstreams/LambdaFunction/inlinePolicyAddedToExecutionRole-0","children":{"Resource":{"id":"Resource","path":"lamkin-existingStreamWithCmk/test-lambda-kinesisstreams/LambdaFunction/inlinePolicyAddedToExecutionRole-0/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::IAM::Policy","aws:cdk:cloudformation:props":{"policyDocument":{"Statement":[{"Action":["xray:PutTelemetryRecords","xray:PutTraceSegments"],"Effect":"Allow","Resource":"*"}],"Version":"2012-10-17"},"policyName":"testlambdakinesisstreamsLambdaFunctioninlinePolicyAddedToExecutionRole022FB8950","roles":[{"Ref":"testlambdakinesisstreamsLambdaFunctionServiceRole95206CF3"}]}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.CfnPolicy","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.Policy","version":"2.186.0","metadata":[{"statements":"*"},{"addStatements":[{}]},{"attachToRole":["*"]},{"attachToRole":["*"]}]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_lambda.Function","version":"2.186.0","metadata":[{"role":"*","tracing":"Active","code":"*","runtime":"*","handler":"*"},{"addEnvironment":["*","*",{"removeInEdge":true}]},{"addEnvironment":["*","*"]}]}},"KinesisStreamGetRecordsIteratorAgeAlarm":{"id":"KinesisStreamGetRecordsIteratorAgeAlarm","path":"lamkin-existingStreamWithCmk/test-lambda-kinesisstreams/KinesisStreamGetRecordsIteratorAgeAlarm","children":{"Resource":{"id":"Resource","path":"lamkin-existingStreamWithCmk/test-lambda-kinesisstreams/KinesisStreamGetRecordsIteratorAgeAlarm/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::CloudWatch::Alarm","aws:cdk:cloudformation:props":{"alarmDescription":"Consumer Record Processing Falling Behind, there is risk for data loss due to record expiration.","comparisonOperator":"GreaterThanOrEqualToThreshold","evaluationPeriods":1,"metricName":"GetRecords.IteratorAgeMilliseconds","namespace":"AWS/Kinesis","period":300,"statistic":"Maximum","threshold":43200000}},"constructInfo":{"fqn":"aws-cdk-lib.aws_cloudwatch.CfnAlarm","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_cloudwatch.Alarm","version":"2.186.0","metadata":[{"metric":{"warnings":"*"},"threshold":"*","evaluationPeriods":"*","comparisonOperator":"*","alarmDescription":"*"}]}},"KinesisStreamReadProvisionedThroughputExceededAlarm":{"id":"KinesisStreamReadProvisionedThroughputExceededAlarm","path":"lamkin-existingStreamWithCmk/test-lambda-kinesisstreams/KinesisStreamReadProvisionedThroughputExceededAlarm","children":{"Resource":{"id":"Resource","path":"lamkin-existingStreamWithCmk/test-lambda-kinesisstreams/KinesisStreamReadProvisionedThroughputExceededAlarm/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::CloudWatch::Alarm","aws:cdk:cloudformation:props":{"alarmDescription":"Consumer Application is Reading at a Slower Rate Than Expected.","comparisonOperator":"GreaterThanThreshold","evaluationPeriods":1,"metricName":"ReadProvisionedThroughputExceeded","namespace":"AWS/Kinesis","period":300,"statistic":"Average","threshold":0}},"constructInfo":{"fqn":"aws-cdk-lib.aws_cloudwatch.CfnAlarm","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_cloudwatch.Alarm","version":"2.186.0","metadata":[{"metric":{"warnings":"*"},"threshold":"*","evaluationPeriods":"*","comparisonOperator":"*","alarmDescription":"*"}]}}},"constructInfo":{"fqn":"@aws-solutions-constructs/aws-lambda-kinesisstreams.LambdaToKinesisStreams","version":"2.80.0"}},"Integ":{"id":"Integ","path":"lamkin-existingStreamWithCmk/Integ","children":{"DefaultTest":{"id":"DefaultTest","path":"lamkin-existingStreamWithCmk/Integ/DefaultTest","children":{"Default":{"id":"Default","path":"lamkin-existingStreamWithCmk/Integ/DefaultTest/Default","constructInfo":{"fqn":"constructs.Construct","version":"10.4.2"}},"DeployAssert":{"id":"DeployAssert","path":"lamkin-existingStreamWithCmk/Integ/DefaultTest/DeployAssert","children":{"BootstrapVersion":{"id":"BootstrapVersion","path":"lamkin-existingStreamWithCmk/Integ/DefaultTest/DeployAssert/BootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnParameter","version":"2.186.0"}},"CheckBootstrapVersion":{"id":"CheckBootstrapVersion","path":"lamkin-existingStreamWithCmk/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnRule","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.Stack","version":"2.186.0"}}},"constructInfo":{"fqn":"@aws-cdk/integ-tests-alpha.IntegTestCase","version":"2.186.0-alpha.0"}}},"constructInfo":{"fqn":"@aws-cdk/integ-tests-alpha.IntegTest","version":"2.186.0-alpha.0"}},"BootstrapVersion":{"id":"BootstrapVersion","path":"lamkin-existingStreamWithCmk/BootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnParameter","version":"2.186.0"}},"CheckBootstrapVersion":{"id":"CheckBootstrapVersion","path":"lamkin-existingStreamWithCmk/CheckBootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnRule","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.Stack","version":"2.186.0"}},"Tree":{"id":"Tree","path":"Tree","constructInfo":{"fqn":"constructs.Construct","version":"10.4.2"}}},"constructInfo":{"fqn":"aws-cdk-lib.App","version":"2.186.0"}}}
@@ -1 +1 @@
1
- {"version":"39.0.0"}
1
+ {"version":"40.0.0"}
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "39.0.0",
2
+ "version": "40.0.0",
3
3
  "testCases": {
4
4
  "lamkin-existingVpc/Integ/DefaultTest": {
5
5
  "stacks": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "39.0.0",
2
+ "version": "40.0.0",
3
3
  "files": {
4
4
  "7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200": {
5
5
  "source": {
@@ -27,7 +27,7 @@
27
27
  }
28
28
  }
29
29
  },
30
- "5a48c00e0693f71b0ed8f210d1406be0448b731f769bf04378b9ed3ec47ef089": {
30
+ "1cb5dbfb5c3a84e5b340c0108b26d8222af723b5e3744c06ce693a4e21811647": {
31
31
  "source": {
32
32
  "path": "lamkin-existingVpc.template.json",
33
33
  "packaging": "file"
@@ -35,7 +35,7 @@
35
35
  "destinations": {
36
36
  "current_account-current_region": {
37
37
  "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
38
- "objectKey": "5a48c00e0693f71b0ed8f210d1406be0448b731f769bf04378b9ed3ec47ef089.json",
38
+ "objectKey": "1cb5dbfb5c3a84e5b340c0108b26d8222af723b5e3744c06ce693a4e21811647.json",
39
39
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
40
40
  }
41
41
  }
@@ -788,9 +788,7 @@
788
788
  "ec2:CreateNetworkInterface",
789
789
  "ec2:DeleteNetworkInterface",
790
790
  "ec2:DescribeNetworkInterfaces",
791
- "ec2:UnassignPrivateIpAddresses",
792
- "xray:PutTelemetryRecords",
793
- "xray:PutTraceSegments"
791
+ "ec2:UnassignPrivateIpAddresses"
794
792
  ],
795
793
  "Effect": "Allow",
796
794
  "Resource": "*"
@@ -934,6 +932,36 @@
934
932
  }
935
933
  }
936
934
  },
935
+ "testlambdakinesisstreamsLambdaFunctioninlinePolicyAddedToExecutionRole022FB8950": {
936
+ "Type": "AWS::IAM::Policy",
937
+ "Properties": {
938
+ "PolicyDocument": {
939
+ "Statement": [
940
+ {
941
+ "Action": [
942
+ "xray:PutTelemetryRecords",
943
+ "xray:PutTraceSegments"
944
+ ],
945
+ "Effect": "Allow",
946
+ "Resource": "*"
947
+ }
948
+ ],
949
+ "Version": "2012-10-17"
950
+ },
951
+ "PolicyName": "testlambdakinesisstreamsLambdaFunctioninlinePolicyAddedToExecutionRole022FB8950",
952
+ "Roles": [
953
+ {
954
+ "Ref": "testlambdakinesisstreamsLambdaFunctionServiceRole95206CF3"
955
+ }
956
+ ]
957
+ },
958
+ "DependsOn": [
959
+ "VpcPrivateSubnet1DefaultRouteBE02A9ED",
960
+ "VpcPrivateSubnet1RouteTableAssociation70C59FA6",
961
+ "VpcPrivateSubnet2DefaultRoute060D2087",
962
+ "VpcPrivateSubnet2RouteTableAssociationA89CAD56"
963
+ ]
964
+ },
937
965
  "testlambdakinesisstreamsKinesisStream11A82116": {
938
966
  "Type": "AWS::Kinesis::Stream",
939
967
  "Properties": {
@@ -1080,10 +1108,10 @@
1080
1108
  "value": "nodejs20.x"
1081
1109
  },
1082
1110
  "cn-north-1": {
1083
- "value": "nodejs18.x"
1111
+ "value": "nodejs20.x"
1084
1112
  },
1085
1113
  "cn-northwest-1": {
1086
- "value": "nodejs18.x"
1114
+ "value": "nodejs20.x"
1087
1115
  },
1088
1116
  "eu-central-1": {
1089
1117
  "value": "nodejs20.x"
@@ -1134,10 +1162,10 @@
1134
1162
  "value": "nodejs20.x"
1135
1163
  },
1136
1164
  "us-gov-east-1": {
1137
- "value": "nodejs18.x"
1165
+ "value": "nodejs20.x"
1138
1166
  },
1139
1167
  "us-gov-west-1": {
1140
- "value": "nodejs18.x"
1168
+ "value": "nodejs20.x"
1141
1169
  },
1142
1170
  "us-iso-east-1": {
1143
1171
  "value": "nodejs18.x"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "39.0.0",
2
+ "version": "40.0.0",
3
3
  "files": {
4
4
  "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": {
5
5
  "source": {