@aws-solutions-constructs/aws-lambda-kinesisstreams 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 (99) 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.lamkin-existingLambda.js +5 -2
  7. package/test/integ.lamkin-existingLambda.js.snapshot/asset.c7dc0cc1b24bda1d2a5345f61897eee32184906649fdb1de93853c512e129dbf/index.mjs +15 -0
  8. package/test/integ.lamkin-existingLambda.js.snapshot/cdk.out +1 -0
  9. package/test/integ.lamkin-existingLambda.js.snapshot/integ.json +12 -0
  10. package/test/integ.lamkin-existingLambda.js.snapshot/lamkin-existingLambda.assets.json +32 -0
  11. package/test/integ.lamkin-existingLambda.js.snapshot/lamkin-existingLambda.template.json +229 -0
  12. package/test/integ.lamkin-existingLambda.js.snapshot/lamkinexistingLambdaIntegDefaultTestDeployAssertD62E9419.assets.json +19 -0
  13. package/test/integ.lamkin-existingLambda.js.snapshot/lamkinexistingLambdaIntegDefaultTestDeployAssertD62E9419.template.json +36 -0
  14. package/test/integ.lamkin-existingLambda.js.snapshot/manifest.json +143 -0
  15. package/test/integ.lamkin-existingLambda.js.snapshot/tree.json +412 -0
  16. package/test/integ.lamkin-existingStream.js +5 -2
  17. package/test/integ.lamkin-existingStream.js.snapshot/asset.c7dc0cc1b24bda1d2a5345f61897eee32184906649fdb1de93853c512e129dbf/index.mjs +15 -0
  18. package/test/integ.lamkin-existingStream.js.snapshot/cdk.out +1 -0
  19. package/test/integ.lamkin-existingStream.js.snapshot/integ.json +12 -0
  20. package/test/integ.lamkin-existingStream.js.snapshot/lamkin-existingStream.assets.json +32 -0
  21. package/test/integ.lamkin-existingStream.js.snapshot/lamkin-existingStream.template.json +231 -0
  22. package/test/integ.lamkin-existingStream.js.snapshot/lamkinexistingStreamIntegDefaultTestDeployAssert2681B9A2.assets.json +19 -0
  23. package/test/integ.lamkin-existingStream.js.snapshot/lamkinexistingStreamIntegDefaultTestDeployAssert2681B9A2.template.json +36 -0
  24. package/test/integ.lamkin-existingStream.js.snapshot/manifest.json +143 -0
  25. package/test/integ.lamkin-existingStream.js.snapshot/tree.json +414 -0
  26. package/test/integ.lamkin-existingStreamWithCmk.js +5 -2
  27. package/test/integ.lamkin-existingStreamWithCmk.js.snapshot/asset.c7dc0cc1b24bda1d2a5345f61897eee32184906649fdb1de93853c512e129dbf/index.mjs +15 -0
  28. package/test/integ.lamkin-existingStreamWithCmk.js.snapshot/cdk.out +1 -0
  29. package/test/integ.lamkin-existingStreamWithCmk.js.snapshot/integ.json +12 -0
  30. package/test/integ.lamkin-existingStreamWithCmk.js.snapshot/lamkin-existingStreamWithCmk.assets.json +32 -0
  31. package/test/integ.lamkin-existingStreamWithCmk.js.snapshot/lamkin-existingStreamWithCmk.template.json +285 -0
  32. package/test/integ.lamkin-existingStreamWithCmk.js.snapshot/lamkinexistingStreamWithCmkIntegDefaultTestDeployAssert6EDF4045.assets.json +19 -0
  33. package/test/integ.lamkin-existingStreamWithCmk.js.snapshot/lamkinexistingStreamWithCmkIntegDefaultTestDeployAssert6EDF4045.template.json +36 -0
  34. package/test/integ.lamkin-existingStreamWithCmk.js.snapshot/manifest.json +149 -0
  35. package/test/integ.lamkin-existingStreamWithCmk.js.snapshot/tree.json +484 -0
  36. package/test/integ.lamkin-existingVpc.js +6 -2
  37. package/test/integ.lamkin-existingVpc.js.snapshot/asset.c7dc0cc1b24bda1d2a5345f61897eee32184906649fdb1de93853c512e129dbf/index.mjs +15 -0
  38. package/test/integ.lamkin-existingVpc.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/__entrypoint__.js +1 -0
  39. package/test/integ.lamkin-existingVpc.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/index.js +1 -0
  40. package/test/integ.lamkin-existingVpc.js.snapshot/cdk.out +1 -0
  41. package/test/integ.lamkin-existingVpc.js.snapshot/integ.json +12 -0
  42. package/test/integ.lamkin-existingVpc.js.snapshot/lamkin-existingVpc.assets.json +45 -0
  43. package/test/integ.lamkin-existingVpc.js.snapshot/lamkin-existingVpc.template.json +1040 -0
  44. package/test/integ.lamkin-existingVpc.js.snapshot/lamkinexistingVpcIntegDefaultTestDeployAssertB97E47BA.assets.json +19 -0
  45. package/test/integ.lamkin-existingVpc.js.snapshot/lamkinexistingVpcIntegDefaultTestDeployAssertB97E47BA.template.json +36 -0
  46. package/test/integ.lamkin-existingVpc.js.snapshot/manifest.json +341 -0
  47. package/test/integ.lamkin-existingVpc.js.snapshot/tree.json +1463 -0
  48. package/test/integ.lamkin-newStreamFromProps.js +5 -2
  49. package/test/integ.lamkin-newStreamFromProps.js.snapshot/asset.c7dc0cc1b24bda1d2a5345f61897eee32184906649fdb1de93853c512e129dbf/index.mjs +15 -0
  50. package/test/integ.lamkin-newStreamFromProps.js.snapshot/cdk.out +1 -0
  51. package/test/integ.lamkin-newStreamFromProps.js.snapshot/integ.json +12 -0
  52. package/test/integ.lamkin-newStreamFromProps.js.snapshot/lamkin-newStreamFromProps.assets.json +32 -0
  53. package/test/integ.lamkin-newStreamFromProps.js.snapshot/lamkin-newStreamFromProps.template.json +231 -0
  54. package/test/integ.lamkin-newStreamFromProps.js.snapshot/lamkinnewStreamFromPropsIntegDefaultTestDeployAssertC2946F34.assets.json +19 -0
  55. package/test/integ.lamkin-newStreamFromProps.js.snapshot/lamkinnewStreamFromPropsIntegDefaultTestDeployAssertC2946F34.template.json +36 -0
  56. package/test/integ.lamkin-newStreamFromProps.js.snapshot/manifest.json +143 -0
  57. package/test/integ.lamkin-newStreamFromProps.js.snapshot/tree.json +414 -0
  58. package/test/integ.lamkin-newVpc.js +6 -2
  59. package/test/integ.lamkin-newVpc.js.snapshot/asset.c7dc0cc1b24bda1d2a5345f61897eee32184906649fdb1de93853c512e129dbf/index.mjs +15 -0
  60. package/test/integ.lamkin-newVpc.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/__entrypoint__.js +1 -0
  61. package/test/integ.lamkin-newVpc.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/index.js +1 -0
  62. package/test/integ.lamkin-newVpc.js.snapshot/cdk.out +1 -0
  63. package/test/integ.lamkin-newVpc.js.snapshot/integ.json +12 -0
  64. package/test/integ.lamkin-newVpc.js.snapshot/lamkin-newVpc.assets.json +45 -0
  65. package/test/integ.lamkin-newVpc.js.snapshot/lamkin-newVpc.template.json +756 -0
  66. package/test/integ.lamkin-newVpc.js.snapshot/lamkinnewVpcIntegDefaultTestDeployAssert16AC3D59.assets.json +19 -0
  67. package/test/integ.lamkin-newVpc.js.snapshot/lamkinnewVpcIntegDefaultTestDeployAssert16AC3D59.template.json +36 -0
  68. package/test/integ.lamkin-newVpc.js.snapshot/manifest.json +245 -0
  69. package/test/integ.lamkin-newVpc.js.snapshot/tree.json +1051 -0
  70. package/test/integ.lamkin-newVpcFromProps.js +6 -2
  71. package/test/integ.lamkin-newVpcFromProps.js.snapshot/asset.c7dc0cc1b24bda1d2a5345f61897eee32184906649fdb1de93853c512e129dbf/index.mjs +15 -0
  72. package/test/integ.lamkin-newVpcFromProps.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/__entrypoint__.js +1 -0
  73. package/test/integ.lamkin-newVpcFromProps.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/index.js +1 -0
  74. package/test/integ.lamkin-newVpcFromProps.js.snapshot/cdk.out +1 -0
  75. package/test/integ.lamkin-newVpcFromProps.js.snapshot/integ.json +12 -0
  76. package/test/integ.lamkin-newVpcFromProps.js.snapshot/lamkin-newVpcFromProps.assets.json +45 -0
  77. package/test/integ.lamkin-newVpcFromProps.js.snapshot/lamkin-newVpcFromProps.template.json +692 -0
  78. package/test/integ.lamkin-newVpcFromProps.js.snapshot/lamkinnewVpcFromPropsIntegDefaultTestDeployAssert95FE0487.assets.json +19 -0
  79. package/test/integ.lamkin-newVpcFromProps.js.snapshot/lamkinnewVpcFromPropsIntegDefaultTestDeployAssert95FE0487.template.json +36 -0
  80. package/test/integ.lamkin-newVpcFromProps.js.snapshot/manifest.json +227 -0
  81. package/test/integ.lamkin-newVpcFromProps.js.snapshot/tree.json +946 -0
  82. package/test/integ.lamkin-noArguments.js +5 -2
  83. package/test/integ.lamkin-noArguments.js.snapshot/asset.c7dc0cc1b24bda1d2a5345f61897eee32184906649fdb1de93853c512e129dbf/index.mjs +15 -0
  84. package/test/integ.lamkin-noArguments.js.snapshot/cdk.out +1 -0
  85. package/test/integ.lamkin-noArguments.js.snapshot/integ.json +12 -0
  86. package/test/integ.lamkin-noArguments.js.snapshot/lamkin-noArguments.assets.json +32 -0
  87. package/test/integ.lamkin-noArguments.js.snapshot/lamkin-noArguments.template.json +229 -0
  88. package/test/integ.lamkin-noArguments.js.snapshot/lamkinnoArgumentsIntegDefaultTestDeployAssertC0CED4B2.assets.json +19 -0
  89. package/test/integ.lamkin-noArguments.js.snapshot/lamkinnoArgumentsIntegDefaultTestDeployAssertC0CED4B2.template.json +36 -0
  90. package/test/integ.lamkin-noArguments.js.snapshot/manifest.json +143 -0
  91. package/test/integ.lamkin-noArguments.js.snapshot/tree.json +412 -0
  92. package/test/integ.lamkin-existingLambda.expected.json +0 -229
  93. package/test/integ.lamkin-existingStream.expected.json +0 -231
  94. package/test/integ.lamkin-existingStreamWithCmk.expected.json +0 -297
  95. package/test/integ.lamkin-existingVpc.expected.json +0 -1065
  96. package/test/integ.lamkin-newStreamFromProps.expected.json +0 -231
  97. package/test/integ.lamkin-newVpc.expected.json +0 -671
  98. package/test/integ.lamkin-newVpcFromProps.expected.json +0 -557
  99. package/test/integ.lamkin-noArguments.expected.json +0 -229
@@ -0,0 +1,414 @@
1
+ {
2
+ "version": "tree-0.1",
3
+ "tree": {
4
+ "id": "App",
5
+ "path": "",
6
+ "children": {
7
+ "lamkin-existingStream": {
8
+ "id": "lamkin-existingStream",
9
+ "path": "lamkin-existingStream",
10
+ "children": {
11
+ "test-stream": {
12
+ "id": "test-stream",
13
+ "path": "lamkin-existingStream/test-stream",
14
+ "children": {
15
+ "Resource": {
16
+ "id": "Resource",
17
+ "path": "lamkin-existingStream/test-stream/Resource",
18
+ "attributes": {
19
+ "aws:cdk:cloudformation:type": "AWS::Kinesis::Stream",
20
+ "aws:cdk:cloudformation:props": {
21
+ "retentionPeriodHours": 24,
22
+ "streamEncryption": {
23
+ "encryptionType": "KMS",
24
+ "keyId": "alias/aws/kinesis"
25
+ },
26
+ "streamModeDetails": {
27
+ "streamMode": "ON_DEMAND"
28
+ }
29
+ }
30
+ },
31
+ "constructInfo": {
32
+ "fqn": "aws-cdk-lib.aws_kinesis.CfnStream",
33
+ "version": "2.118.0"
34
+ }
35
+ }
36
+ },
37
+ "constructInfo": {
38
+ "fqn": "aws-cdk-lib.aws_kinesis.Stream",
39
+ "version": "2.118.0"
40
+ }
41
+ },
42
+ "test-lambda-kinesisstreams": {
43
+ "id": "test-lambda-kinesisstreams",
44
+ "path": "lamkin-existingStream/test-lambda-kinesisstreams",
45
+ "children": {
46
+ "LambdaFunctionServiceRole": {
47
+ "id": "LambdaFunctionServiceRole",
48
+ "path": "lamkin-existingStream/test-lambda-kinesisstreams/LambdaFunctionServiceRole",
49
+ "children": {
50
+ "ImportLambdaFunctionServiceRole": {
51
+ "id": "ImportLambdaFunctionServiceRole",
52
+ "path": "lamkin-existingStream/test-lambda-kinesisstreams/LambdaFunctionServiceRole/ImportLambdaFunctionServiceRole",
53
+ "constructInfo": {
54
+ "fqn": "aws-cdk-lib.Resource",
55
+ "version": "2.118.0"
56
+ }
57
+ },
58
+ "Resource": {
59
+ "id": "Resource",
60
+ "path": "lamkin-existingStream/test-lambda-kinesisstreams/LambdaFunctionServiceRole/Resource",
61
+ "attributes": {
62
+ "aws:cdk:cloudformation:type": "AWS::IAM::Role",
63
+ "aws:cdk:cloudformation:props": {
64
+ "assumeRolePolicyDocument": {
65
+ "Statement": [
66
+ {
67
+ "Action": "sts:AssumeRole",
68
+ "Effect": "Allow",
69
+ "Principal": {
70
+ "Service": "lambda.amazonaws.com"
71
+ }
72
+ }
73
+ ],
74
+ "Version": "2012-10-17"
75
+ },
76
+ "policies": [
77
+ {
78
+ "policyName": "LambdaFunctionServiceRolePolicy",
79
+ "policyDocument": {
80
+ "Statement": [
81
+ {
82
+ "Action": [
83
+ "logs:CreateLogGroup",
84
+ "logs:CreateLogStream",
85
+ "logs:PutLogEvents"
86
+ ],
87
+ "Effect": "Allow",
88
+ "Resource": {
89
+ "Fn::Join": [
90
+ "",
91
+ [
92
+ "arn:",
93
+ {
94
+ "Ref": "AWS::Partition"
95
+ },
96
+ ":logs:",
97
+ {
98
+ "Ref": "AWS::Region"
99
+ },
100
+ ":",
101
+ {
102
+ "Ref": "AWS::AccountId"
103
+ },
104
+ ":log-group:/aws/lambda/*"
105
+ ]
106
+ ]
107
+ }
108
+ }
109
+ ],
110
+ "Version": "2012-10-17"
111
+ }
112
+ }
113
+ ]
114
+ }
115
+ },
116
+ "constructInfo": {
117
+ "fqn": "aws-cdk-lib.aws_iam.CfnRole",
118
+ "version": "2.118.0"
119
+ }
120
+ },
121
+ "DefaultPolicy": {
122
+ "id": "DefaultPolicy",
123
+ "path": "lamkin-existingStream/test-lambda-kinesisstreams/LambdaFunctionServiceRole/DefaultPolicy",
124
+ "children": {
125
+ "Resource": {
126
+ "id": "Resource",
127
+ "path": "lamkin-existingStream/test-lambda-kinesisstreams/LambdaFunctionServiceRole/DefaultPolicy/Resource",
128
+ "attributes": {
129
+ "aws:cdk:cloudformation:type": "AWS::IAM::Policy",
130
+ "aws:cdk:cloudformation:props": {
131
+ "policyDocument": {
132
+ "Statement": [
133
+ {
134
+ "Action": [
135
+ "xray:PutTelemetryRecords",
136
+ "xray:PutTraceSegments"
137
+ ],
138
+ "Effect": "Allow",
139
+ "Resource": "*"
140
+ },
141
+ {
142
+ "Action": [
143
+ "kinesis:ListShards",
144
+ "kinesis:PutRecord",
145
+ "kinesis:PutRecords"
146
+ ],
147
+ "Effect": "Allow",
148
+ "Resource": {
149
+ "Fn::GetAtt": [
150
+ "teststream04374A09",
151
+ "Arn"
152
+ ]
153
+ }
154
+ }
155
+ ],
156
+ "Version": "2012-10-17"
157
+ },
158
+ "policyName": "testlambdakinesisstreamsLambdaFunctionServiceRoleDefaultPolicyED972043",
159
+ "roles": [
160
+ {
161
+ "Ref": "testlambdakinesisstreamsLambdaFunctionServiceRole95206CF3"
162
+ }
163
+ ]
164
+ }
165
+ },
166
+ "constructInfo": {
167
+ "fqn": "aws-cdk-lib.aws_iam.CfnPolicy",
168
+ "version": "2.118.0"
169
+ }
170
+ }
171
+ },
172
+ "constructInfo": {
173
+ "fqn": "aws-cdk-lib.aws_iam.Policy",
174
+ "version": "2.118.0"
175
+ }
176
+ }
177
+ },
178
+ "constructInfo": {
179
+ "fqn": "aws-cdk-lib.aws_iam.Role",
180
+ "version": "2.118.0"
181
+ }
182
+ },
183
+ "LambdaFunction": {
184
+ "id": "LambdaFunction",
185
+ "path": "lamkin-existingStream/test-lambda-kinesisstreams/LambdaFunction",
186
+ "children": {
187
+ "Code": {
188
+ "id": "Code",
189
+ "path": "lamkin-existingStream/test-lambda-kinesisstreams/LambdaFunction/Code",
190
+ "children": {
191
+ "Stage": {
192
+ "id": "Stage",
193
+ "path": "lamkin-existingStream/test-lambda-kinesisstreams/LambdaFunction/Code/Stage",
194
+ "constructInfo": {
195
+ "fqn": "aws-cdk-lib.AssetStaging",
196
+ "version": "2.118.0"
197
+ }
198
+ },
199
+ "AssetBucket": {
200
+ "id": "AssetBucket",
201
+ "path": "lamkin-existingStream/test-lambda-kinesisstreams/LambdaFunction/Code/AssetBucket",
202
+ "constructInfo": {
203
+ "fqn": "aws-cdk-lib.aws_s3.BucketBase",
204
+ "version": "2.118.0"
205
+ }
206
+ }
207
+ },
208
+ "constructInfo": {
209
+ "fqn": "aws-cdk-lib.aws_s3_assets.Asset",
210
+ "version": "2.118.0"
211
+ }
212
+ },
213
+ "Resource": {
214
+ "id": "Resource",
215
+ "path": "lamkin-existingStream/test-lambda-kinesisstreams/LambdaFunction/Resource",
216
+ "attributes": {
217
+ "aws:cdk:cloudformation:type": "AWS::Lambda::Function",
218
+ "aws:cdk:cloudformation:props": {
219
+ "code": {
220
+ "s3Bucket": {
221
+ "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
222
+ },
223
+ "s3Key": "c7dc0cc1b24bda1d2a5345f61897eee32184906649fdb1de93853c512e129dbf.zip"
224
+ },
225
+ "environment": {
226
+ "variables": {
227
+ "KINESIS_DATASTREAM_NAME": {
228
+ "Ref": "teststream04374A09"
229
+ }
230
+ }
231
+ },
232
+ "handler": "index.handler",
233
+ "role": {
234
+ "Fn::GetAtt": [
235
+ "testlambdakinesisstreamsLambdaFunctionServiceRole95206CF3",
236
+ "Arn"
237
+ ]
238
+ },
239
+ "runtime": "nodejs18.x",
240
+ "tracingConfig": {
241
+ "mode": "Active"
242
+ }
243
+ }
244
+ },
245
+ "constructInfo": {
246
+ "fqn": "aws-cdk-lib.aws_lambda.CfnFunction",
247
+ "version": "2.118.0"
248
+ }
249
+ }
250
+ },
251
+ "constructInfo": {
252
+ "fqn": "aws-cdk-lib.aws_lambda.Function",
253
+ "version": "2.118.0"
254
+ }
255
+ },
256
+ "KinesisStreamGetRecordsIteratorAgeAlarm": {
257
+ "id": "KinesisStreamGetRecordsIteratorAgeAlarm",
258
+ "path": "lamkin-existingStream/test-lambda-kinesisstreams/KinesisStreamGetRecordsIteratorAgeAlarm",
259
+ "children": {
260
+ "Resource": {
261
+ "id": "Resource",
262
+ "path": "lamkin-existingStream/test-lambda-kinesisstreams/KinesisStreamGetRecordsIteratorAgeAlarm/Resource",
263
+ "attributes": {
264
+ "aws:cdk:cloudformation:type": "AWS::CloudWatch::Alarm",
265
+ "aws:cdk:cloudformation:props": {
266
+ "alarmDescription": "Consumer Record Processing Falling Behind, there is risk for data loss due to record expiration.",
267
+ "comparisonOperator": "GreaterThanOrEqualToThreshold",
268
+ "evaluationPeriods": 1,
269
+ "metricName": "GetRecords.IteratorAgeMilliseconds",
270
+ "namespace": "AWS/Kinesis",
271
+ "period": 300,
272
+ "statistic": "Maximum",
273
+ "threshold": 43200000
274
+ }
275
+ },
276
+ "constructInfo": {
277
+ "fqn": "aws-cdk-lib.aws_cloudwatch.CfnAlarm",
278
+ "version": "2.118.0"
279
+ }
280
+ }
281
+ },
282
+ "constructInfo": {
283
+ "fqn": "aws-cdk-lib.aws_cloudwatch.Alarm",
284
+ "version": "2.118.0"
285
+ }
286
+ },
287
+ "KinesisStreamReadProvisionedThroughputExceededAlarm": {
288
+ "id": "KinesisStreamReadProvisionedThroughputExceededAlarm",
289
+ "path": "lamkin-existingStream/test-lambda-kinesisstreams/KinesisStreamReadProvisionedThroughputExceededAlarm",
290
+ "children": {
291
+ "Resource": {
292
+ "id": "Resource",
293
+ "path": "lamkin-existingStream/test-lambda-kinesisstreams/KinesisStreamReadProvisionedThroughputExceededAlarm/Resource",
294
+ "attributes": {
295
+ "aws:cdk:cloudformation:type": "AWS::CloudWatch::Alarm",
296
+ "aws:cdk:cloudformation:props": {
297
+ "alarmDescription": "Consumer Application is Reading at a Slower Rate Than Expected.",
298
+ "comparisonOperator": "GreaterThanThreshold",
299
+ "evaluationPeriods": 1,
300
+ "metricName": "ReadProvisionedThroughputExceeded",
301
+ "namespace": "AWS/Kinesis",
302
+ "period": 300,
303
+ "statistic": "Average",
304
+ "threshold": 0
305
+ }
306
+ },
307
+ "constructInfo": {
308
+ "fqn": "aws-cdk-lib.aws_cloudwatch.CfnAlarm",
309
+ "version": "2.118.0"
310
+ }
311
+ }
312
+ },
313
+ "constructInfo": {
314
+ "fqn": "aws-cdk-lib.aws_cloudwatch.Alarm",
315
+ "version": "2.118.0"
316
+ }
317
+ }
318
+ },
319
+ "constructInfo": {
320
+ "fqn": "@aws-solutions-constructs/aws-lambda-kinesisstreams.LambdaToKinesisStreams",
321
+ "version": "2.50.0"
322
+ }
323
+ },
324
+ "Integ": {
325
+ "id": "Integ",
326
+ "path": "lamkin-existingStream/Integ",
327
+ "children": {
328
+ "DefaultTest": {
329
+ "id": "DefaultTest",
330
+ "path": "lamkin-existingStream/Integ/DefaultTest",
331
+ "children": {
332
+ "Default": {
333
+ "id": "Default",
334
+ "path": "lamkin-existingStream/Integ/DefaultTest/Default",
335
+ "constructInfo": {
336
+ "fqn": "constructs.Construct",
337
+ "version": "10.0.0"
338
+ }
339
+ },
340
+ "DeployAssert": {
341
+ "id": "DeployAssert",
342
+ "path": "lamkin-existingStream/Integ/DefaultTest/DeployAssert",
343
+ "children": {
344
+ "BootstrapVersion": {
345
+ "id": "BootstrapVersion",
346
+ "path": "lamkin-existingStream/Integ/DefaultTest/DeployAssert/BootstrapVersion",
347
+ "constructInfo": {
348
+ "fqn": "aws-cdk-lib.CfnParameter",
349
+ "version": "2.118.0"
350
+ }
351
+ },
352
+ "CheckBootstrapVersion": {
353
+ "id": "CheckBootstrapVersion",
354
+ "path": "lamkin-existingStream/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
355
+ "constructInfo": {
356
+ "fqn": "aws-cdk-lib.CfnRule",
357
+ "version": "2.118.0"
358
+ }
359
+ }
360
+ },
361
+ "constructInfo": {
362
+ "fqn": "aws-cdk-lib.Stack",
363
+ "version": "2.118.0"
364
+ }
365
+ }
366
+ },
367
+ "constructInfo": {
368
+ "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
369
+ "version": "2.118.0-alpha.0"
370
+ }
371
+ }
372
+ },
373
+ "constructInfo": {
374
+ "fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
375
+ "version": "2.118.0-alpha.0"
376
+ }
377
+ },
378
+ "BootstrapVersion": {
379
+ "id": "BootstrapVersion",
380
+ "path": "lamkin-existingStream/BootstrapVersion",
381
+ "constructInfo": {
382
+ "fqn": "aws-cdk-lib.CfnParameter",
383
+ "version": "2.118.0"
384
+ }
385
+ },
386
+ "CheckBootstrapVersion": {
387
+ "id": "CheckBootstrapVersion",
388
+ "path": "lamkin-existingStream/CheckBootstrapVersion",
389
+ "constructInfo": {
390
+ "fqn": "aws-cdk-lib.CfnRule",
391
+ "version": "2.118.0"
392
+ }
393
+ }
394
+ },
395
+ "constructInfo": {
396
+ "fqn": "aws-cdk-lib.Stack",
397
+ "version": "2.118.0"
398
+ }
399
+ },
400
+ "Tree": {
401
+ "id": "Tree",
402
+ "path": "Tree",
403
+ "constructInfo": {
404
+ "fqn": "constructs.Construct",
405
+ "version": "10.0.0"
406
+ }
407
+ }
408
+ },
409
+ "constructInfo": {
410
+ "fqn": "aws-cdk-lib.App",
411
+ "version": "2.118.0"
412
+ }
413
+ }
414
+ }
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  const aws_cdk_lib_1 = require("aws-cdk-lib");
17
17
  const lib_1 = require("../lib");
18
18
  const core_1 = require("@aws-solutions-constructs/core");
19
+ const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha");
19
20
  const kinesis = require("aws-cdk-lib/aws-kinesis");
20
21
  const kms = require("aws-cdk-lib/aws-kms");
21
22
  const lambda = require("aws-cdk-lib/aws-lambda");
@@ -35,5 +36,7 @@ new lib_1.LambdaToKinesisStreams(stack, 'test-lambda-kinesisstreams', {
35
36
  },
36
37
  existingStreamObj
37
38
  });
38
- app.synth();
39
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubGFta2luLWV4aXN0aW5nU3RyZWFtV2l0aENtay5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmxhbWtpbi1leGlzdGluZ1N0cmVhbVdpdGhDbWsudHMiXSwibmFtZXMiOltdL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2F3cy1jZGstbGliL2F3cy1rbXMnO1xuaW1wb3J0ICogYXMgbGFtYmRhIGZyb20gJ2F3cy1jZGstbGliL2F3cy1sYW1iZGEnO1xuXG5jb25zdCBhcHAgPSBuZXcgQXBwKCk7XG5jb25zdCBzdGFjayA9IG5ldyBTdGFjayhhcHAsIGdlbmVyYXRlSW50ZWdTdGFja05hbWUoX19maWxlbmFtZSkpO1xuXG5jb25zdCBlbmNyeXB0aW9uS2V5ID0gbmV3IGttcy5LZXkoc3RhY2ssICd0ZXN0LWtleScsIHtcbiAgZW5hYmxlS2V5Um90YXRpb246IHRydWVcbn0pO1xuXG5jb25zdCBleGlzdGluZ1N0cmVhbU9iaiA9IG5ldyBraW5lc2lzLlN0cmVhbShzdGFjaywgJ3Rlc3Qtc3RyZWFtJywge1xuICBlbmNyeXB0aW9uS2V5XG59KTtcblxubmV3IExhbWJkYVRvS2luZXNpc1N0cmVhbXMoc3RhY2ssICd0ZXN0LWxhbWJkYS1raW5lc2lzc3RyZWFtcycsIHtcbiAgbGFtYmRhRnVuY3Rpb25Qcm9wczoge1xuICAgIGNvZGU6IGxhbWJkYS5Db2RlLmZyb21Bc3NldChgJHtfX2Rpcm5hbWV9L2xhbWJkYWApLFxuICAgIHJ1bnRpbWU6IGxhbWJkYS5SdW50aW1lLk5PREVKU18xOF9YLFxuICAgIGhhbmRsZXI6ICdpbmRleC5oYW5kbGVyJ1xuICB9LFxuICBleGlzdGluZ1N0cmVhbU9ialxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19
39
+ new integ_tests_alpha_1.IntegTest(stack, 'Integ', { testCases: [
40
+ stack
41
+ ] });
42
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubGFta2luLWV4aXN0aW5nU3RyZWFtV2l0aENtay5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmxhbWtpbi1leGlzdGluZ1N0cmVhbVdpdGhDbWsudHM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XSB9KTtcbiJdfQ==
@@ -0,0 +1,15 @@
1
+ import { KinesisClient, PutRecordCommand } from "@aws-sdk/client-kinesis";
2
+
3
+ const kinesis = new KinesisClient({ region: process.env.REGION });
4
+ const streamName = process.env.KINESIS_DATASTREAM_NAME;
5
+
6
+ export const handler = async(event) => {
7
+
8
+ const result = await kinesis.send(new PutRecordCommand({
9
+ StreamName: streamName,
10
+ Data: Buffer.from('hello from solutions constructs'),
11
+ PartitionKey: '1'
12
+ }));
13
+
14
+ console.log(JSON.stringify(result));
15
+ };
@@ -0,0 +1 @@
1
+ {"version":"36.0.0"}
@@ -0,0 +1,12 @@
1
+ {
2
+ "version": "36.0.0",
3
+ "testCases": {
4
+ "lamkin-existingStreamWithCmk/Integ/DefaultTest": {
5
+ "stacks": [
6
+ "lamkin-existingStreamWithCmk"
7
+ ],
8
+ "assertionStack": "lamkin-existingStreamWithCmk/Integ/DefaultTest/DeployAssert",
9
+ "assertionStackName": "lamkinexistingStreamWithCmkIntegDefaultTestDeployAssert6EDF4045"
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "version": "36.0.0",
3
+ "files": {
4
+ "c7dc0cc1b24bda1d2a5345f61897eee32184906649fdb1de93853c512e129dbf": {
5
+ "source": {
6
+ "path": "asset.c7dc0cc1b24bda1d2a5345f61897eee32184906649fdb1de93853c512e129dbf",
7
+ "packaging": "zip"
8
+ },
9
+ "destinations": {
10
+ "current_account-current_region": {
11
+ "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
12
+ "objectKey": "c7dc0cc1b24bda1d2a5345f61897eee32184906649fdb1de93853c512e129dbf.zip",
13
+ "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
14
+ }
15
+ }
16
+ },
17
+ "e1434e4ab6034c88b30ae1030adeefb704b6aad8acd930fe1ca7193b2f1f10c7": {
18
+ "source": {
19
+ "path": "lamkin-existingStreamWithCmk.template.json",
20
+ "packaging": "file"
21
+ },
22
+ "destinations": {
23
+ "current_account-current_region": {
24
+ "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
25
+ "objectKey": "e1434e4ab6034c88b30ae1030adeefb704b6aad8acd930fe1ca7193b2f1f10c7.json",
26
+ "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
27
+ }
28
+ }
29
+ }
30
+ },
31
+ "dockerImages": {}
32
+ }