@aws-solutions-constructs/aws-kinesisstreams-lambda 2.95.1 → 2.97.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.
- package/.jsii +4392 -58
- package/README.adoc +4 -5
- package/lib/index.d.ts +2 -2
- package/lib/index.js +2 -2
- package/package.json +6 -6
- package/test/integ.kinlam-existing.js.snapshot/asset.26cf7db64552331215006953bf73e5adfb49b5bf0eb2298bfe04547b76c08b88/index.js +21 -0
- package/test/integ.kinlam-existing.js.snapshot/cdk.out +1 -1
- package/test/integ.kinlam-existing.js.snapshot/integ.json +3 -2
- package/test/integ.kinlam-existing.js.snapshot/kinlam-existing.assets.json +7 -5
- package/test/integ.kinlam-existing.js.snapshot/kinlam-existing.template.json +1 -1
- package/test/integ.kinlam-existing.js.snapshot/kinlamexistingIntegDefaultTestDeployAssert64C292A9.assets.json +3 -2
- package/test/integ.kinlam-existing.js.snapshot/manifest.json +694 -3
- package/test/integ.kinlam-existing.js.snapshot/tree.json +1 -573
- package/test/integ.kinlam-no-arguments.js.snapshot/asset.26cf7db64552331215006953bf73e5adfb49b5bf0eb2298bfe04547b76c08b88/index.js +21 -0
- package/test/integ.kinlam-no-arguments.js.snapshot/cdk.out +1 -1
- package/test/integ.kinlam-no-arguments.js.snapshot/integ.json +3 -2
- package/test/integ.kinlam-no-arguments.js.snapshot/kinlam-no-arguments.assets.json +7 -5
- package/test/integ.kinlam-no-arguments.js.snapshot/kinlam-no-arguments.template.json +1 -1
- package/test/integ.kinlam-no-arguments.js.snapshot/kinlamnoargumentsIntegDefaultTestDeployAssertE5672C42.assets.json +3 -2
- package/test/integ.kinlam-no-arguments.js.snapshot/manifest.json +500 -5
- package/test/integ.kinlam-no-arguments.js.snapshot/tree.json +1 -1
|
@@ -1,573 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "tree-0.1",
|
|
3
|
-
"tree": {
|
|
4
|
-
"id": "App",
|
|
5
|
-
"path": "",
|
|
6
|
-
"children": {
|
|
7
|
-
"kinlam-existing": {
|
|
8
|
-
"id": "kinlam-existing",
|
|
9
|
-
"path": "kinlam-existing",
|
|
10
|
-
"children": {
|
|
11
|
-
"test-role": {
|
|
12
|
-
"id": "test-role",
|
|
13
|
-
"path": "kinlam-existing/test-role",
|
|
14
|
-
"children": {
|
|
15
|
-
"Importtest-role": {
|
|
16
|
-
"id": "Importtest-role",
|
|
17
|
-
"path": "kinlam-existing/test-role/Importtest-role",
|
|
18
|
-
"constructInfo": {
|
|
19
|
-
"fqn": "aws-cdk-lib.Resource",
|
|
20
|
-
"version": "2.150.0"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"Resource": {
|
|
24
|
-
"id": "Resource",
|
|
25
|
-
"path": "kinlam-existing/test-role/Resource",
|
|
26
|
-
"attributes": {
|
|
27
|
-
"aws:cdk:cloudformation:type": "AWS::IAM::Role",
|
|
28
|
-
"aws:cdk:cloudformation:props": {
|
|
29
|
-
"assumeRolePolicyDocument": {
|
|
30
|
-
"Statement": [
|
|
31
|
-
{
|
|
32
|
-
"Action": "sts:AssumeRole",
|
|
33
|
-
"Effect": "Allow",
|
|
34
|
-
"Principal": {
|
|
35
|
-
"Service": "lambda.amazonaws.com"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
"Version": "2012-10-17"
|
|
40
|
-
},
|
|
41
|
-
"policies": [
|
|
42
|
-
{
|
|
43
|
-
"policyName": "LambdaFunctionServiceRolePolicy",
|
|
44
|
-
"policyDocument": {
|
|
45
|
-
"Statement": [
|
|
46
|
-
{
|
|
47
|
-
"Action": [
|
|
48
|
-
"logs:CreateLogGroup",
|
|
49
|
-
"logs:CreateLogStream",
|
|
50
|
-
"logs:PutLogEvents"
|
|
51
|
-
],
|
|
52
|
-
"Effect": "Allow",
|
|
53
|
-
"Resource": {
|
|
54
|
-
"Fn::Join": [
|
|
55
|
-
"",
|
|
56
|
-
[
|
|
57
|
-
"arn:",
|
|
58
|
-
{
|
|
59
|
-
"Ref": "AWS::Partition"
|
|
60
|
-
},
|
|
61
|
-
":logs:",
|
|
62
|
-
{
|
|
63
|
-
"Ref": "AWS::Region"
|
|
64
|
-
},
|
|
65
|
-
":",
|
|
66
|
-
{
|
|
67
|
-
"Ref": "AWS::AccountId"
|
|
68
|
-
},
|
|
69
|
-
":log-group:/aws/lambda/*"
|
|
70
|
-
]
|
|
71
|
-
]
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
],
|
|
75
|
-
"Version": "2012-10-17"
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
]
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
"constructInfo": {
|
|
82
|
-
"fqn": "aws-cdk-lib.aws_iam.CfnRole",
|
|
83
|
-
"version": "2.150.0"
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
"DefaultPolicy": {
|
|
87
|
-
"id": "DefaultPolicy",
|
|
88
|
-
"path": "kinlam-existing/test-role/DefaultPolicy",
|
|
89
|
-
"children": {
|
|
90
|
-
"Resource": {
|
|
91
|
-
"id": "Resource",
|
|
92
|
-
"path": "kinlam-existing/test-role/DefaultPolicy/Resource",
|
|
93
|
-
"attributes": {
|
|
94
|
-
"aws:cdk:cloudformation:type": "AWS::IAM::Policy",
|
|
95
|
-
"aws:cdk:cloudformation:props": {
|
|
96
|
-
"policyDocument": {
|
|
97
|
-
"Statement": [
|
|
98
|
-
{
|
|
99
|
-
"Action": [
|
|
100
|
-
"kinesis:DescribeStream",
|
|
101
|
-
"kinesis:DescribeStreamConsumer",
|
|
102
|
-
"kinesis:DescribeStreamSummary",
|
|
103
|
-
"kinesis:GetRecords",
|
|
104
|
-
"kinesis:GetShardIterator",
|
|
105
|
-
"kinesis:ListShards",
|
|
106
|
-
"kinesis:ListStreams",
|
|
107
|
-
"kinesis:SubscribeToShard"
|
|
108
|
-
],
|
|
109
|
-
"Effect": "Allow",
|
|
110
|
-
"Resource": {
|
|
111
|
-
"Fn::GetAtt": [
|
|
112
|
-
"teststream04374A09",
|
|
113
|
-
"Arn"
|
|
114
|
-
]
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"Action": [
|
|
119
|
-
"sqs:GetQueueAttributes",
|
|
120
|
-
"sqs:GetQueueUrl",
|
|
121
|
-
"sqs:SendMessage"
|
|
122
|
-
],
|
|
123
|
-
"Effect": "Allow",
|
|
124
|
-
"Resource": {
|
|
125
|
-
"Fn::GetAtt": [
|
|
126
|
-
"testkslambdaSqsDlqQueueDE67EC6C",
|
|
127
|
-
"Arn"
|
|
128
|
-
]
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
],
|
|
132
|
-
"Version": "2012-10-17"
|
|
133
|
-
},
|
|
134
|
-
"policyName": "testroleDefaultPolicy884631E2",
|
|
135
|
-
"roles": [
|
|
136
|
-
{
|
|
137
|
-
"Ref": "testroleB50A37BE"
|
|
138
|
-
}
|
|
139
|
-
]
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
"constructInfo": {
|
|
143
|
-
"fqn": "aws-cdk-lib.aws_iam.CfnPolicy",
|
|
144
|
-
"version": "2.150.0"
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
"constructInfo": {
|
|
149
|
-
"fqn": "aws-cdk-lib.aws_iam.Policy",
|
|
150
|
-
"version": "2.150.0"
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
"constructInfo": {
|
|
155
|
-
"fqn": "aws-cdk-lib.aws_iam.Role",
|
|
156
|
-
"version": "2.150.0"
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
"test-fn": {
|
|
160
|
-
"id": "test-fn",
|
|
161
|
-
"path": "kinlam-existing/test-fn",
|
|
162
|
-
"children": {
|
|
163
|
-
"Code": {
|
|
164
|
-
"id": "Code",
|
|
165
|
-
"path": "kinlam-existing/test-fn/Code",
|
|
166
|
-
"children": {
|
|
167
|
-
"Stage": {
|
|
168
|
-
"id": "Stage",
|
|
169
|
-
"path": "kinlam-existing/test-fn/Code/Stage",
|
|
170
|
-
"constructInfo": {
|
|
171
|
-
"fqn": "aws-cdk-lib.AssetStaging",
|
|
172
|
-
"version": "2.150.0"
|
|
173
|
-
}
|
|
174
|
-
},
|
|
175
|
-
"AssetBucket": {
|
|
176
|
-
"id": "AssetBucket",
|
|
177
|
-
"path": "kinlam-existing/test-fn/Code/AssetBucket",
|
|
178
|
-
"constructInfo": {
|
|
179
|
-
"fqn": "aws-cdk-lib.aws_s3.BucketBase",
|
|
180
|
-
"version": "2.150.0"
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
},
|
|
184
|
-
"constructInfo": {
|
|
185
|
-
"fqn": "aws-cdk-lib.aws_s3_assets.Asset",
|
|
186
|
-
"version": "2.150.0"
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
"Resource": {
|
|
190
|
-
"id": "Resource",
|
|
191
|
-
"path": "kinlam-existing/test-fn/Resource",
|
|
192
|
-
"attributes": {
|
|
193
|
-
"aws:cdk:cloudformation:type": "AWS::Lambda::Function",
|
|
194
|
-
"aws:cdk:cloudformation:props": {
|
|
195
|
-
"code": {
|
|
196
|
-
"s3Bucket": {
|
|
197
|
-
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
|
|
198
|
-
},
|
|
199
|
-
"s3Key": "26cf7db64552331215006953bf73e5adfb49b5bf0eb2298bfe04547b76c08b88.zip"
|
|
200
|
-
},
|
|
201
|
-
"handler": "index.handler",
|
|
202
|
-
"role": {
|
|
203
|
-
"Fn::GetAtt": [
|
|
204
|
-
"testroleB50A37BE",
|
|
205
|
-
"Arn"
|
|
206
|
-
]
|
|
207
|
-
},
|
|
208
|
-
"runtime": "nodejs20.x"
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
"constructInfo": {
|
|
212
|
-
"fqn": "aws-cdk-lib.aws_lambda.CfnFunction",
|
|
213
|
-
"version": "2.150.0"
|
|
214
|
-
}
|
|
215
|
-
},
|
|
216
|
-
"KinesisEventSource:kinlamexistingteststream6B91D225": {
|
|
217
|
-
"id": "KinesisEventSource:kinlamexistingteststream6B91D225",
|
|
218
|
-
"path": "kinlam-existing/test-fn/KinesisEventSource:kinlamexistingteststream6B91D225",
|
|
219
|
-
"children": {
|
|
220
|
-
"Resource": {
|
|
221
|
-
"id": "Resource",
|
|
222
|
-
"path": "kinlam-existing/test-fn/KinesisEventSource:kinlamexistingteststream6B91D225/Resource",
|
|
223
|
-
"attributes": {
|
|
224
|
-
"aws:cdk:cloudformation:type": "AWS::Lambda::EventSourceMapping",
|
|
225
|
-
"aws:cdk:cloudformation:props": {
|
|
226
|
-
"batchSize": 1,
|
|
227
|
-
"bisectBatchOnFunctionError": true,
|
|
228
|
-
"destinationConfig": {
|
|
229
|
-
"onFailure": {
|
|
230
|
-
"destination": {
|
|
231
|
-
"Fn::GetAtt": [
|
|
232
|
-
"testkslambdaSqsDlqQueueDE67EC6C",
|
|
233
|
-
"Arn"
|
|
234
|
-
]
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
},
|
|
238
|
-
"eventSourceArn": {
|
|
239
|
-
"Fn::GetAtt": [
|
|
240
|
-
"teststream04374A09",
|
|
241
|
-
"Arn"
|
|
242
|
-
]
|
|
243
|
-
},
|
|
244
|
-
"functionName": {
|
|
245
|
-
"Ref": "testfn76BCC25C"
|
|
246
|
-
},
|
|
247
|
-
"maximumRecordAgeInSeconds": 86400,
|
|
248
|
-
"maximumRetryAttempts": 500,
|
|
249
|
-
"startingPosition": "LATEST"
|
|
250
|
-
}
|
|
251
|
-
},
|
|
252
|
-
"constructInfo": {
|
|
253
|
-
"fqn": "aws-cdk-lib.aws_lambda.CfnEventSourceMapping",
|
|
254
|
-
"version": "2.150.0"
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
},
|
|
258
|
-
"constructInfo": {
|
|
259
|
-
"fqn": "aws-cdk-lib.aws_lambda.EventSourceMapping",
|
|
260
|
-
"version": "2.150.0"
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
},
|
|
264
|
-
"constructInfo": {
|
|
265
|
-
"fqn": "aws-cdk-lib.aws_lambda.Function",
|
|
266
|
-
"version": "2.150.0"
|
|
267
|
-
}
|
|
268
|
-
},
|
|
269
|
-
"test-stream": {
|
|
270
|
-
"id": "test-stream",
|
|
271
|
-
"path": "kinlam-existing/test-stream",
|
|
272
|
-
"children": {
|
|
273
|
-
"Resource": {
|
|
274
|
-
"id": "Resource",
|
|
275
|
-
"path": "kinlam-existing/test-stream/Resource",
|
|
276
|
-
"attributes": {
|
|
277
|
-
"aws:cdk:cloudformation:type": "AWS::Kinesis::Stream",
|
|
278
|
-
"aws:cdk:cloudformation:props": {
|
|
279
|
-
"retentionPeriodHours": 24,
|
|
280
|
-
"shardCount": 2,
|
|
281
|
-
"streamEncryption": {
|
|
282
|
-
"encryptionType": "KMS",
|
|
283
|
-
"keyId": "alias/aws/kinesis"
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
},
|
|
287
|
-
"constructInfo": {
|
|
288
|
-
"fqn": "aws-cdk-lib.aws_kinesis.CfnStream",
|
|
289
|
-
"version": "2.150.0"
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
},
|
|
293
|
-
"constructInfo": {
|
|
294
|
-
"fqn": "aws-cdk-lib.aws_kinesis.Stream",
|
|
295
|
-
"version": "2.150.0"
|
|
296
|
-
}
|
|
297
|
-
},
|
|
298
|
-
"test-ks-lambda": {
|
|
299
|
-
"id": "test-ks-lambda",
|
|
300
|
-
"path": "kinlam-existing/test-ks-lambda",
|
|
301
|
-
"children": {
|
|
302
|
-
"SqsDlqQueue": {
|
|
303
|
-
"id": "SqsDlqQueue",
|
|
304
|
-
"path": "kinlam-existing/test-ks-lambda/SqsDlqQueue",
|
|
305
|
-
"children": {
|
|
306
|
-
"Resource": {
|
|
307
|
-
"id": "Resource",
|
|
308
|
-
"path": "kinlam-existing/test-ks-lambda/SqsDlqQueue/Resource",
|
|
309
|
-
"attributes": {
|
|
310
|
-
"aws:cdk:cloudformation:type": "AWS::SQS::Queue",
|
|
311
|
-
"aws:cdk:cloudformation:props": {
|
|
312
|
-
"kmsMasterKeyId": "alias/aws/sqs"
|
|
313
|
-
}
|
|
314
|
-
},
|
|
315
|
-
"constructInfo": {
|
|
316
|
-
"fqn": "aws-cdk-lib.aws_sqs.CfnQueue",
|
|
317
|
-
"version": "2.150.0"
|
|
318
|
-
}
|
|
319
|
-
},
|
|
320
|
-
"Policy": {
|
|
321
|
-
"id": "Policy",
|
|
322
|
-
"path": "kinlam-existing/test-ks-lambda/SqsDlqQueue/Policy",
|
|
323
|
-
"children": {
|
|
324
|
-
"Resource": {
|
|
325
|
-
"id": "Resource",
|
|
326
|
-
"path": "kinlam-existing/test-ks-lambda/SqsDlqQueue/Policy/Resource",
|
|
327
|
-
"attributes": {
|
|
328
|
-
"aws:cdk:cloudformation:type": "AWS::SQS::QueuePolicy",
|
|
329
|
-
"aws:cdk:cloudformation:props": {
|
|
330
|
-
"policyDocument": {
|
|
331
|
-
"Statement": [
|
|
332
|
-
{
|
|
333
|
-
"Action": [
|
|
334
|
-
"sqs:AddPermission",
|
|
335
|
-
"sqs:DeleteMessage",
|
|
336
|
-
"sqs:GetQueueAttributes",
|
|
337
|
-
"sqs:ReceiveMessage",
|
|
338
|
-
"sqs:RemovePermission",
|
|
339
|
-
"sqs:SendMessage",
|
|
340
|
-
"sqs:SetQueueAttributes"
|
|
341
|
-
],
|
|
342
|
-
"Effect": "Allow",
|
|
343
|
-
"Principal": {
|
|
344
|
-
"AWS": {
|
|
345
|
-
"Fn::Join": [
|
|
346
|
-
"",
|
|
347
|
-
[
|
|
348
|
-
"arn:",
|
|
349
|
-
{
|
|
350
|
-
"Ref": "AWS::Partition"
|
|
351
|
-
},
|
|
352
|
-
":iam::",
|
|
353
|
-
{
|
|
354
|
-
"Ref": "AWS::AccountId"
|
|
355
|
-
},
|
|
356
|
-
":root"
|
|
357
|
-
]
|
|
358
|
-
]
|
|
359
|
-
}
|
|
360
|
-
},
|
|
361
|
-
"Resource": {
|
|
362
|
-
"Fn::GetAtt": [
|
|
363
|
-
"testkslambdaSqsDlqQueueDE67EC6C",
|
|
364
|
-
"Arn"
|
|
365
|
-
]
|
|
366
|
-
},
|
|
367
|
-
"Sid": "QueueOwnerOnlyAccess"
|
|
368
|
-
},
|
|
369
|
-
{
|
|
370
|
-
"Action": "SQS:*",
|
|
371
|
-
"Condition": {
|
|
372
|
-
"Bool": {
|
|
373
|
-
"aws:SecureTransport": "false"
|
|
374
|
-
}
|
|
375
|
-
},
|
|
376
|
-
"Effect": "Deny",
|
|
377
|
-
"Principal": {
|
|
378
|
-
"AWS": "*"
|
|
379
|
-
},
|
|
380
|
-
"Resource": {
|
|
381
|
-
"Fn::GetAtt": [
|
|
382
|
-
"testkslambdaSqsDlqQueueDE67EC6C",
|
|
383
|
-
"Arn"
|
|
384
|
-
]
|
|
385
|
-
},
|
|
386
|
-
"Sid": "HttpsOnly"
|
|
387
|
-
}
|
|
388
|
-
],
|
|
389
|
-
"Version": "2012-10-17"
|
|
390
|
-
},
|
|
391
|
-
"queues": [
|
|
392
|
-
{
|
|
393
|
-
"Ref": "testkslambdaSqsDlqQueueDE67EC6C"
|
|
394
|
-
}
|
|
395
|
-
]
|
|
396
|
-
}
|
|
397
|
-
},
|
|
398
|
-
"constructInfo": {
|
|
399
|
-
"fqn": "aws-cdk-lib.aws_sqs.CfnQueuePolicy",
|
|
400
|
-
"version": "2.150.0"
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
},
|
|
404
|
-
"constructInfo": {
|
|
405
|
-
"fqn": "aws-cdk-lib.aws_sqs.QueuePolicy",
|
|
406
|
-
"version": "2.150.0"
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
},
|
|
410
|
-
"constructInfo": {
|
|
411
|
-
"fqn": "aws-cdk-lib.aws_sqs.Queue",
|
|
412
|
-
"version": "2.150.0"
|
|
413
|
-
}
|
|
414
|
-
},
|
|
415
|
-
"KinesisStreamGetRecordsIteratorAgeAlarm": {
|
|
416
|
-
"id": "KinesisStreamGetRecordsIteratorAgeAlarm",
|
|
417
|
-
"path": "kinlam-existing/test-ks-lambda/KinesisStreamGetRecordsIteratorAgeAlarm",
|
|
418
|
-
"children": {
|
|
419
|
-
"Resource": {
|
|
420
|
-
"id": "Resource",
|
|
421
|
-
"path": "kinlam-existing/test-ks-lambda/KinesisStreamGetRecordsIteratorAgeAlarm/Resource",
|
|
422
|
-
"attributes": {
|
|
423
|
-
"aws:cdk:cloudformation:type": "AWS::CloudWatch::Alarm",
|
|
424
|
-
"aws:cdk:cloudformation:props": {
|
|
425
|
-
"alarmDescription": "Consumer Record Processing Falling Behind, there is risk for data loss due to record expiration.",
|
|
426
|
-
"comparisonOperator": "GreaterThanOrEqualToThreshold",
|
|
427
|
-
"evaluationPeriods": 1,
|
|
428
|
-
"metricName": "GetRecords.IteratorAgeMilliseconds",
|
|
429
|
-
"namespace": "AWS/Kinesis",
|
|
430
|
-
"period": 300,
|
|
431
|
-
"statistic": "Maximum",
|
|
432
|
-
"threshold": 43200000
|
|
433
|
-
}
|
|
434
|
-
},
|
|
435
|
-
"constructInfo": {
|
|
436
|
-
"fqn": "aws-cdk-lib.aws_cloudwatch.CfnAlarm",
|
|
437
|
-
"version": "2.150.0"
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
},
|
|
441
|
-
"constructInfo": {
|
|
442
|
-
"fqn": "aws-cdk-lib.aws_cloudwatch.Alarm",
|
|
443
|
-
"version": "2.150.0"
|
|
444
|
-
}
|
|
445
|
-
},
|
|
446
|
-
"KinesisStreamReadProvisionedThroughputExceededAlarm": {
|
|
447
|
-
"id": "KinesisStreamReadProvisionedThroughputExceededAlarm",
|
|
448
|
-
"path": "kinlam-existing/test-ks-lambda/KinesisStreamReadProvisionedThroughputExceededAlarm",
|
|
449
|
-
"children": {
|
|
450
|
-
"Resource": {
|
|
451
|
-
"id": "Resource",
|
|
452
|
-
"path": "kinlam-existing/test-ks-lambda/KinesisStreamReadProvisionedThroughputExceededAlarm/Resource",
|
|
453
|
-
"attributes": {
|
|
454
|
-
"aws:cdk:cloudformation:type": "AWS::CloudWatch::Alarm",
|
|
455
|
-
"aws:cdk:cloudformation:props": {
|
|
456
|
-
"alarmDescription": "Consumer Application is Reading at a Slower Rate Than Expected.",
|
|
457
|
-
"comparisonOperator": "GreaterThanThreshold",
|
|
458
|
-
"evaluationPeriods": 1,
|
|
459
|
-
"metricName": "ReadProvisionedThroughputExceeded",
|
|
460
|
-
"namespace": "AWS/Kinesis",
|
|
461
|
-
"period": 300,
|
|
462
|
-
"statistic": "Average",
|
|
463
|
-
"threshold": 0
|
|
464
|
-
}
|
|
465
|
-
},
|
|
466
|
-
"constructInfo": {
|
|
467
|
-
"fqn": "aws-cdk-lib.aws_cloudwatch.CfnAlarm",
|
|
468
|
-
"version": "2.150.0"
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
},
|
|
472
|
-
"constructInfo": {
|
|
473
|
-
"fqn": "aws-cdk-lib.aws_cloudwatch.Alarm",
|
|
474
|
-
"version": "2.150.0"
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
},
|
|
478
|
-
"constructInfo": {
|
|
479
|
-
"fqn": "@aws-solutions-constructs/aws-kinesisstreams-lambda.KinesisStreamsToLambda",
|
|
480
|
-
"version": "2.63.0"
|
|
481
|
-
}
|
|
482
|
-
},
|
|
483
|
-
"Integ": {
|
|
484
|
-
"id": "Integ",
|
|
485
|
-
"path": "kinlam-existing/Integ",
|
|
486
|
-
"children": {
|
|
487
|
-
"DefaultTest": {
|
|
488
|
-
"id": "DefaultTest",
|
|
489
|
-
"path": "kinlam-existing/Integ/DefaultTest",
|
|
490
|
-
"children": {
|
|
491
|
-
"Default": {
|
|
492
|
-
"id": "Default",
|
|
493
|
-
"path": "kinlam-existing/Integ/DefaultTest/Default",
|
|
494
|
-
"constructInfo": {
|
|
495
|
-
"fqn": "constructs.Construct",
|
|
496
|
-
"version": "10.3.0"
|
|
497
|
-
}
|
|
498
|
-
},
|
|
499
|
-
"DeployAssert": {
|
|
500
|
-
"id": "DeployAssert",
|
|
501
|
-
"path": "kinlam-existing/Integ/DefaultTest/DeployAssert",
|
|
502
|
-
"children": {
|
|
503
|
-
"BootstrapVersion": {
|
|
504
|
-
"id": "BootstrapVersion",
|
|
505
|
-
"path": "kinlam-existing/Integ/DefaultTest/DeployAssert/BootstrapVersion",
|
|
506
|
-
"constructInfo": {
|
|
507
|
-
"fqn": "aws-cdk-lib.CfnParameter",
|
|
508
|
-
"version": "2.150.0"
|
|
509
|
-
}
|
|
510
|
-
},
|
|
511
|
-
"CheckBootstrapVersion": {
|
|
512
|
-
"id": "CheckBootstrapVersion",
|
|
513
|
-
"path": "kinlam-existing/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
|
|
514
|
-
"constructInfo": {
|
|
515
|
-
"fqn": "aws-cdk-lib.CfnRule",
|
|
516
|
-
"version": "2.150.0"
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
},
|
|
520
|
-
"constructInfo": {
|
|
521
|
-
"fqn": "aws-cdk-lib.Stack",
|
|
522
|
-
"version": "2.150.0"
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
},
|
|
526
|
-
"constructInfo": {
|
|
527
|
-
"fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
|
|
528
|
-
"version": "2.150.0-alpha.0"
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
},
|
|
532
|
-
"constructInfo": {
|
|
533
|
-
"fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
|
|
534
|
-
"version": "2.150.0-alpha.0"
|
|
535
|
-
}
|
|
536
|
-
},
|
|
537
|
-
"BootstrapVersion": {
|
|
538
|
-
"id": "BootstrapVersion",
|
|
539
|
-
"path": "kinlam-existing/BootstrapVersion",
|
|
540
|
-
"constructInfo": {
|
|
541
|
-
"fqn": "aws-cdk-lib.CfnParameter",
|
|
542
|
-
"version": "2.150.0"
|
|
543
|
-
}
|
|
544
|
-
},
|
|
545
|
-
"CheckBootstrapVersion": {
|
|
546
|
-
"id": "CheckBootstrapVersion",
|
|
547
|
-
"path": "kinlam-existing/CheckBootstrapVersion",
|
|
548
|
-
"constructInfo": {
|
|
549
|
-
"fqn": "aws-cdk-lib.CfnRule",
|
|
550
|
-
"version": "2.150.0"
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
},
|
|
554
|
-
"constructInfo": {
|
|
555
|
-
"fqn": "aws-cdk-lib.Stack",
|
|
556
|
-
"version": "2.150.0"
|
|
557
|
-
}
|
|
558
|
-
},
|
|
559
|
-
"Tree": {
|
|
560
|
-
"id": "Tree",
|
|
561
|
-
"path": "Tree",
|
|
562
|
-
"constructInfo": {
|
|
563
|
-
"fqn": "constructs.Construct",
|
|
564
|
-
"version": "10.3.0"
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
},
|
|
568
|
-
"constructInfo": {
|
|
569
|
-
"fqn": "aws-cdk-lib.App",
|
|
570
|
-
"version": "2.150.0"
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
}
|
|
1
|
+
{"version":"tree-0.1","tree":{"id":"App","path":"","constructInfo":{"fqn":"aws-cdk-lib.App","version":"2.223.0"},"children":{"kinlam-existing":{"id":"kinlam-existing","path":"kinlam-existing","constructInfo":{"fqn":"aws-cdk-lib.Stack","version":"2.223.0"},"children":{"test-role":{"id":"test-role","path":"kinlam-existing/test-role","constructInfo":{"fqn":"aws-cdk-lib.aws_iam.Role","version":"2.223.0","metadata":[{"assumedBy":{"principalAccount":"*","assumeRoleAction":"*"},"inlinePolicies":"*"},{"addToPrincipalPolicy":[{}]},{"attachInlinePolicy":["*"]},{"attachInlinePolicy":["*"]},{"addToPrincipalPolicy":[{}]},{"addToPrincipalPolicy":[{}]}]},"children":{"Importtest-role":{"id":"Importtest-role","path":"kinlam-existing/test-role/Importtest-role","constructInfo":{"fqn":"aws-cdk-lib.Resource","version":"2.223.0","metadata":["*"]}},"Resource":{"id":"Resource","path":"kinlam-existing/test-role/Resource","constructInfo":{"fqn":"aws-cdk-lib.aws_iam.CfnRole","version":"2.223.0"},"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"}}]}}},"DefaultPolicy":{"id":"DefaultPolicy","path":"kinlam-existing/test-role/DefaultPolicy","constructInfo":{"fqn":"aws-cdk-lib.aws_iam.Policy","version":"2.223.0","metadata":["*",{"attachToRole":["*"]},{"attachToRole":["*"]},{"addStatements":[{}]},{"addStatements":[{}]},{"addStatements":[{}]}]},"children":{"Resource":{"id":"Resource","path":"kinlam-existing/test-role/DefaultPolicy/Resource","constructInfo":{"fqn":"aws-cdk-lib.aws_iam.CfnPolicy","version":"2.223.0"},"attributes":{"aws:cdk:cloudformation:type":"AWS::IAM::Policy","aws:cdk:cloudformation:props":{"policyDocument":{"Statement":[{"Action":["kinesis:DescribeStream","kinesis:DescribeStreamConsumer","kinesis:DescribeStreamSummary","kinesis:GetRecords","kinesis:GetShardIterator","kinesis:ListShards","kinesis:ListStreams","kinesis:SubscribeToShard"],"Effect":"Allow","Resource":{"Fn::GetAtt":["teststream04374A09","Arn"]}},{"Action":["sqs:GetQueueAttributes","sqs:GetQueueUrl","sqs:SendMessage"],"Effect":"Allow","Resource":{"Fn::GetAtt":["testkslambdaSqsDlqQueueDE67EC6C","Arn"]}}],"Version":"2012-10-17"},"policyName":"testroleDefaultPolicy884631E2","roles":[{"Ref":"testroleB50A37BE"}]}}}}}}},"test-fn":{"id":"test-fn","path":"kinlam-existing/test-fn","constructInfo":{"fqn":"aws-cdk-lib.aws_lambda.Function","version":"2.223.0","metadata":[{"runtime":"*","handler":"*","code":"*","role":"*"}]},"children":{"Code":{"id":"Code","path":"kinlam-existing/test-fn/Code","constructInfo":{"fqn":"aws-cdk-lib.aws_s3_assets.Asset","version":"2.223.0"},"children":{"Stage":{"id":"Stage","path":"kinlam-existing/test-fn/Code/Stage","constructInfo":{"fqn":"aws-cdk-lib.AssetStaging","version":"2.223.0"}},"AssetBucket":{"id":"AssetBucket","path":"kinlam-existing/test-fn/Code/AssetBucket","constructInfo":{"fqn":"aws-cdk-lib.aws_s3.BucketBase","version":"2.223.0","metadata":[]}}}},"Resource":{"id":"Resource","path":"kinlam-existing/test-fn/Resource","constructInfo":{"fqn":"aws-cdk-lib.aws_lambda.CfnFunction","version":"2.223.0"},"attributes":{"aws:cdk:cloudformation:type":"AWS::Lambda::Function","aws:cdk:cloudformation:props":{"code":{"s3Bucket":{"Fn::Sub":"cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"},"s3Key":"26cf7db64552331215006953bf73e5adfb49b5bf0eb2298bfe04547b76c08b88.zip"},"handler":"index.handler","role":{"Fn::GetAtt":["testroleB50A37BE","Arn"]},"runtime":"nodejs22.x"}}},"KinesisEventSource:kinlamexistingteststream6B91D225":{"id":"KinesisEventSource:kinlamexistingteststream6B91D225","path":"kinlam-existing/test-fn/KinesisEventSource:kinlamexistingteststream6B91D225","constructInfo":{"fqn":"aws-cdk-lib.aws_lambda.EventSourceMapping","version":"2.223.0","metadata":[{"target":"*","eventSourceArn":"*","startingPositionTimestamp":"*","metricsConfig":"*","supportS3OnFailureDestination":true,"batchSize":"*","bisectBatchOnError":true,"startingPosition":"LATEST","reportBatchItemFailures":"*","maxBatchingWindow":"*","maxRecordAge":"*","retryAttempts":"*","parallelizationFactor":"*","onFailure":"*","tumblingWindow":"*","enabled":"*","filters":"*","filterEncryption":"*"}]},"children":{"Resource":{"id":"Resource","path":"kinlam-existing/test-fn/KinesisEventSource:kinlamexistingteststream6B91D225/Resource","constructInfo":{"fqn":"aws-cdk-lib.aws_lambda.CfnEventSourceMapping","version":"2.223.0"},"attributes":{"aws:cdk:cloudformation:type":"AWS::Lambda::EventSourceMapping","aws:cdk:cloudformation:props":{"batchSize":1,"bisectBatchOnFunctionError":true,"destinationConfig":{"onFailure":{"destination":{"Fn::GetAtt":["testkslambdaSqsDlqQueueDE67EC6C","Arn"]}}},"eventSourceArn":{"Fn::GetAtt":["teststream04374A09","Arn"]},"functionName":{"Ref":"testfn76BCC25C"},"maximumRecordAgeInSeconds":86400,"maximumRetryAttempts":500,"startingPosition":"LATEST"}}}}}}},"test-stream":{"id":"test-stream","path":"kinlam-existing/test-stream","constructInfo":{"fqn":"aws-cdk-lib.aws_kinesis.Stream","version":"2.223.0","metadata":[{"shardCount":"*","encryption":"MANAGED"}]},"children":{"Resource":{"id":"Resource","path":"kinlam-existing/test-stream/Resource","constructInfo":{"fqn":"aws-cdk-lib.aws_kinesis.CfnStream","version":"2.223.0"},"attributes":{"aws:cdk:cloudformation:type":"AWS::Kinesis::Stream","aws:cdk:cloudformation:props":{"retentionPeriodHours":24,"shardCount":2,"streamEncryption":{"encryptionType":"KMS","keyId":"alias/aws/kinesis"}}}}}},"test-ks-lambda":{"id":"test-ks-lambda","path":"kinlam-existing/test-ks-lambda","constructInfo":{"fqn":"@aws-solutions-constructs/aws-kinesisstreams-lambda.KinesisStreamsToLambda","version":"2.95.1"},"children":{"SqsDlqQueue":{"id":"SqsDlqQueue","path":"kinlam-existing/test-ks-lambda/SqsDlqQueue","constructInfo":{"fqn":"aws-cdk-lib.aws_sqs.Queue","version":"2.223.0","metadata":[{"encryption":"KMS_MANAGED"}]},"children":{"Resource":{"id":"Resource","path":"kinlam-existing/test-ks-lambda/SqsDlqQueue/Resource","constructInfo":{"fqn":"aws-cdk-lib.aws_sqs.CfnQueue","version":"2.223.0"},"attributes":{"aws:cdk:cloudformation:type":"AWS::SQS::Queue","aws:cdk:cloudformation:props":{"kmsMasterKeyId":"alias/aws/sqs"}}},"Policy":{"id":"Policy","path":"kinlam-existing/test-ks-lambda/SqsDlqQueue/Policy","constructInfo":{"fqn":"aws-cdk-lib.aws_sqs.QueuePolicy","version":"2.223.0","metadata":[{"queues":["*"]}]},"children":{"Resource":{"id":"Resource","path":"kinlam-existing/test-ks-lambda/SqsDlqQueue/Policy/Resource","constructInfo":{"fqn":"aws-cdk-lib.aws_sqs.CfnQueuePolicy","version":"2.223.0"},"attributes":{"aws:cdk:cloudformation:type":"AWS::SQS::QueuePolicy","aws:cdk:cloudformation:props":{"policyDocument":{"Statement":[{"Action":["sqs:AddPermission","sqs:DeleteMessage","sqs:GetQueueAttributes","sqs:ReceiveMessage","sqs:RemovePermission","sqs:SendMessage","sqs:SetQueueAttributes"],"Effect":"Allow","Principal":{"AWS":{"Fn::Join":["",["arn:",{"Ref":"AWS::Partition"},":iam::",{"Ref":"AWS::AccountId"},":root"]]}},"Resource":{"Fn::GetAtt":["testkslambdaSqsDlqQueueDE67EC6C","Arn"]},"Sid":"QueueOwnerOnlyAccess"},{"Action":"SQS:*","Condition":{"Bool":{"aws:SecureTransport":"false"}},"Effect":"Deny","Principal":{"AWS":"*"},"Resource":{"Fn::GetAtt":["testkslambdaSqsDlqQueueDE67EC6C","Arn"]},"Sid":"HttpsOnly"}],"Version":"2012-10-17"},"queues":[{"Ref":"testkslambdaSqsDlqQueueDE67EC6C"}]}}}}}}},"KinesisStreamGetRecordsIteratorAgeAlarm":{"id":"KinesisStreamGetRecordsIteratorAgeAlarm","path":"kinlam-existing/test-ks-lambda/KinesisStreamGetRecordsIteratorAgeAlarm","constructInfo":{"fqn":"aws-cdk-lib.aws_cloudwatch.Alarm","version":"2.223.0","metadata":[{"metric":{"warnings":"*","warningsV2":"*"},"threshold":"*","evaluationPeriods":"*","comparisonOperator":"*","alarmDescription":"*"}]},"children":{"Resource":{"id":"Resource","path":"kinlam-existing/test-ks-lambda/KinesisStreamGetRecordsIteratorAgeAlarm/Resource","constructInfo":{"fqn":"aws-cdk-lib.aws_cloudwatch.CfnAlarm","version":"2.223.0"},"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}}}}},"KinesisStreamReadProvisionedThroughputExceededAlarm":{"id":"KinesisStreamReadProvisionedThroughputExceededAlarm","path":"kinlam-existing/test-ks-lambda/KinesisStreamReadProvisionedThroughputExceededAlarm","constructInfo":{"fqn":"aws-cdk-lib.aws_cloudwatch.Alarm","version":"2.223.0","metadata":[{"metric":{"warnings":"*","warningsV2":"*"},"threshold":"*","evaluationPeriods":"*","comparisonOperator":"*","alarmDescription":"*"}]},"children":{"Resource":{"id":"Resource","path":"kinlam-existing/test-ks-lambda/KinesisStreamReadProvisionedThroughputExceededAlarm/Resource","constructInfo":{"fqn":"aws-cdk-lib.aws_cloudwatch.CfnAlarm","version":"2.223.0"},"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}}}}}}},"Integ":{"id":"Integ","path":"kinlam-existing/Integ","constructInfo":{"fqn":"@aws-cdk/integ-tests-alpha.IntegTest","version":"2.223.0-alpha.0"},"children":{"DefaultTest":{"id":"DefaultTest","path":"kinlam-existing/Integ/DefaultTest","constructInfo":{"fqn":"@aws-cdk/integ-tests-alpha.IntegTestCase","version":"2.223.0-alpha.0"},"children":{"Default":{"id":"Default","path":"kinlam-existing/Integ/DefaultTest/Default","constructInfo":{"fqn":"constructs.Construct","version":"10.4.2"}},"DeployAssert":{"id":"DeployAssert","path":"kinlam-existing/Integ/DefaultTest/DeployAssert","constructInfo":{"fqn":"aws-cdk-lib.Stack","version":"2.223.0"},"children":{"BootstrapVersion":{"id":"BootstrapVersion","path":"kinlam-existing/Integ/DefaultTest/DeployAssert/BootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnParameter","version":"2.223.0"}},"CheckBootstrapVersion":{"id":"CheckBootstrapVersion","path":"kinlam-existing/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnRule","version":"2.223.0"}}}}}}}},"BootstrapVersion":{"id":"BootstrapVersion","path":"kinlam-existing/BootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnParameter","version":"2.223.0"}},"CheckBootstrapVersion":{"id":"CheckBootstrapVersion","path":"kinlam-existing/CheckBootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnRule","version":"2.223.0"}}}},"Tree":{"id":"Tree","path":"Tree","constructInfo":{"fqn":"constructs.Construct","version":"10.4.2"}}}}}
|
|
@@ -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 function(event) {
|
|
15
|
+
console.log('request:', JSON.stringify(event, undefined, 2));
|
|
16
|
+
return {
|
|
17
|
+
statusCode: 200,
|
|
18
|
+
headers: { 'Content-Type': 'text/plain' },
|
|
19
|
+
body: `//stub//`
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"48.0.0"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "48.0.0",
|
|
3
3
|
"testCases": {
|
|
4
4
|
"kinlam-no-arguments/Integ/DefaultTest": {
|
|
5
5
|
"stacks": [
|
|
@@ -8,5 +8,6 @@
|
|
|
8
8
|
"assertionStack": "kinlam-no-arguments/Integ/DefaultTest/DeployAssert",
|
|
9
9
|
"assertionStackName": "kinlamnoargumentsIntegDefaultTestDeployAssertE5672C42"
|
|
10
10
|
}
|
|
11
|
-
}
|
|
11
|
+
},
|
|
12
|
+
"minimumCliVersion": "2.1029.2"
|
|
12
13
|
}
|