@aws-solutions-constructs/aws-lambda-dynamodb 2.80.0 → 2.82.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 (53) hide show
  1. package/.jsii +43 -4
  2. package/lib/index.js +1 -1
  3. package/package.json +6 -6
  4. package/test/integ.lamddb-add-secondary-index.js.snapshot/asset.a0c6248ec595d3ceec1177aa5ac5b494fdf4c66f1b88aa48086befd44f193d8c/index.js +21 -0
  5. package/test/integ.lamddb-add-secondary-index.js.snapshot/cdk.out +1 -1
  6. package/test/integ.lamddb-add-secondary-index.js.snapshot/integ.json +1 -1
  7. package/test/integ.lamddb-add-secondary-index.js.snapshot/lamddb-add-secondary-index.assets.json +6 -6
  8. package/test/integ.lamddb-add-secondary-index.js.snapshot/lamddb-add-secondary-index.template.json +25 -19
  9. package/test/integ.lamddb-add-secondary-index.js.snapshot/lamddbaddsecondaryindexIntegDefaultTestDeployAssert3193B4D9.assets.json +1 -1
  10. package/test/integ.lamddb-add-secondary-index.js.snapshot/manifest.json +197 -3
  11. package/test/integ.lamddb-add-secondary-index.js.snapshot/tree.json +1 -415
  12. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/cdk.out +1 -1
  13. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/integ.json +1 -1
  14. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/lamddb-deployFunctionWithExistingVpc.assets.json +3 -3
  15. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/lamddb-deployFunctionWithExistingVpc.template.json +31 -3
  16. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/lamddbdeployFunctionWithExistingVpcIntegDefaultTestDeployAssertEE08E38E.assets.json +1 -1
  17. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/manifest.json +52 -13
  18. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/tree.json +1 -1675
  19. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/cdk.out +1 -1
  20. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/integ.json +1 -1
  21. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/lamddb-deployFunctionWithVpc.assets.json +3 -3
  22. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/lamddb-deployFunctionWithVpc.template.json +29 -3
  23. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/lamddbdeployFunctionWithVpcIntegDefaultTestDeployAssert0AB8275C.assets.json +1 -1
  24. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/manifest.json +52 -13
  25. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/tree.json +1 -1213
  26. package/test/integ.lamddb-no-arguments.js.snapshot/asset.a0c6248ec595d3ceec1177aa5ac5b494fdf4c66f1b88aa48086befd44f193d8c/index.js +21 -0
  27. package/test/integ.lamddb-no-arguments.js.snapshot/cdk.out +1 -1
  28. package/test/integ.lamddb-no-arguments.js.snapshot/integ.json +1 -1
  29. package/test/integ.lamddb-no-arguments.js.snapshot/lamddb-no-arguments.assets.json +6 -6
  30. package/test/integ.lamddb-no-arguments.js.snapshot/lamddb-no-arguments.template.json +25 -19
  31. package/test/integ.lamddb-no-arguments.js.snapshot/lamddbnoargumentsIntegDefaultTestDeployAssert248B75D0.assets.json +1 -1
  32. package/test/integ.lamddb-no-arguments.js.snapshot/manifest.json +183 -3
  33. package/test/integ.lamddb-no-arguments.js.snapshot/tree.json +1 -386
  34. package/test/integ.lamddb-set-billing-mode.js.snapshot/asset.a0c6248ec595d3ceec1177aa5ac5b494fdf4c66f1b88aa48086befd44f193d8c/index.js +21 -0
  35. package/test/integ.lamddb-set-billing-mode.js.snapshot/cdk.out +1 -1
  36. package/test/integ.lamddb-set-billing-mode.js.snapshot/integ.json +1 -1
  37. package/test/integ.lamddb-set-billing-mode.js.snapshot/lamddb-set-billing-mode.assets.json +6 -6
  38. package/test/integ.lamddb-set-billing-mode.js.snapshot/lamddb-set-billing-mode.template.json +25 -19
  39. package/test/integ.lamddb-set-billing-mode.js.snapshot/lamddbsetbillingmodeIntegDefaultTestDeployAssertDAE32272.assets.json +1 -1
  40. package/test/integ.lamddb-set-billing-mode.js.snapshot/manifest.json +185 -3
  41. package/test/integ.lamddb-set-billing-mode.js.snapshot/tree.json +1 -389
  42. package/test/integ.lamddb-use-existing-func.js.snapshot/asset.a0c6248ec595d3ceec1177aa5ac5b494fdf4c66f1b88aa48086befd44f193d8c/index.js +21 -0
  43. package/test/integ.lamddb-use-existing-func.js.snapshot/cdk.out +1 -1
  44. package/test/integ.lamddb-use-existing-func.js.snapshot/integ.json +1 -1
  45. package/test/integ.lamddb-use-existing-func.js.snapshot/lamddb-use-existing-func.assets.json +6 -6
  46. package/test/integ.lamddb-use-existing-func.js.snapshot/lamddb-use-existing-func.template.json +25 -19
  47. package/test/integ.lamddb-use-existing-func.js.snapshot/lamddbuseexistingfuncIntegDefaultTestDeployAssert48D284DD.assets.json +1 -1
  48. package/test/integ.lamddb-use-existing-func.js.snapshot/manifest.json +183 -3
  49. package/test/integ.lamddb-use-existing-func.js.snapshot/tree.json +1 -386
  50. package/test/integ.lamddb-add-secondary-index.js.snapshot/asset.0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8/index.js +0 -8
  51. package/test/integ.lamddb-no-arguments.js.snapshot/asset.0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8/index.js +0 -8
  52. package/test/integ.lamddb-set-billing-mode.js.snapshot/asset.0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8/index.js +0 -8
  53. package/test/integ.lamddb-use-existing-func.js.snapshot/asset.0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8/index.js +0 -8
@@ -1,386 +1 @@
1
- {
2
- "version": "tree-0.1",
3
- "tree": {
4
- "id": "App",
5
- "path": "",
6
- "children": {
7
- "lamddb-use-existing-func": {
8
- "id": "lamddb-use-existing-func",
9
- "path": "lamddb-use-existing-func",
10
- "children": {
11
- "LambdaFunctionServiceRole": {
12
- "id": "LambdaFunctionServiceRole",
13
- "path": "lamddb-use-existing-func/LambdaFunctionServiceRole",
14
- "children": {
15
- "ImportLambdaFunctionServiceRole": {
16
- "id": "ImportLambdaFunctionServiceRole",
17
- "path": "lamddb-use-existing-func/LambdaFunctionServiceRole/ImportLambdaFunctionServiceRole",
18
- "constructInfo": {
19
- "fqn": "aws-cdk-lib.Resource",
20
- "version": "2.150.0"
21
- }
22
- },
23
- "Resource": {
24
- "id": "Resource",
25
- "path": "lamddb-use-existing-func/LambdaFunctionServiceRole/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": "lamddb-use-existing-func/LambdaFunctionServiceRole/DefaultPolicy",
89
- "children": {
90
- "Resource": {
91
- "id": "Resource",
92
- "path": "lamddb-use-existing-func/LambdaFunctionServiceRole/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
- "xray:PutTelemetryRecords",
101
- "xray:PutTraceSegments"
102
- ],
103
- "Effect": "Allow",
104
- "Resource": "*"
105
- },
106
- {
107
- "Action": [
108
- "dynamodb:BatchGetItem",
109
- "dynamodb:BatchWriteItem",
110
- "dynamodb:ConditionCheckItem",
111
- "dynamodb:DeleteItem",
112
- "dynamodb:DescribeTable",
113
- "dynamodb:GetItem",
114
- "dynamodb:GetRecords",
115
- "dynamodb:GetShardIterator",
116
- "dynamodb:PutItem",
117
- "dynamodb:Query",
118
- "dynamodb:Scan",
119
- "dynamodb:UpdateItem"
120
- ],
121
- "Effect": "Allow",
122
- "Resource": [
123
- {
124
- "Fn::GetAtt": [
125
- "testlambdadynamodbstackDynamoTable8138E93B",
126
- "Arn"
127
- ]
128
- },
129
- {
130
- "Ref": "AWS::NoValue"
131
- }
132
- ]
133
- }
134
- ],
135
- "Version": "2012-10-17"
136
- },
137
- "policyName": "LambdaFunctionServiceRoleDefaultPolicy126C8897",
138
- "roles": [
139
- {
140
- "Ref": "LambdaFunctionServiceRole0C4CDE0B"
141
- }
142
- ]
143
- }
144
- },
145
- "constructInfo": {
146
- "fqn": "aws-cdk-lib.aws_iam.CfnPolicy",
147
- "version": "2.150.0"
148
- }
149
- }
150
- },
151
- "constructInfo": {
152
- "fqn": "aws-cdk-lib.aws_iam.Policy",
153
- "version": "2.150.0"
154
- }
155
- }
156
- },
157
- "constructInfo": {
158
- "fqn": "aws-cdk-lib.aws_iam.Role",
159
- "version": "2.150.0"
160
- }
161
- },
162
- "LambdaFunction": {
163
- "id": "LambdaFunction",
164
- "path": "lamddb-use-existing-func/LambdaFunction",
165
- "children": {
166
- "Code": {
167
- "id": "Code",
168
- "path": "lamddb-use-existing-func/LambdaFunction/Code",
169
- "children": {
170
- "Stage": {
171
- "id": "Stage",
172
- "path": "lamddb-use-existing-func/LambdaFunction/Code/Stage",
173
- "constructInfo": {
174
- "fqn": "aws-cdk-lib.AssetStaging",
175
- "version": "2.150.0"
176
- }
177
- },
178
- "AssetBucket": {
179
- "id": "AssetBucket",
180
- "path": "lamddb-use-existing-func/LambdaFunction/Code/AssetBucket",
181
- "constructInfo": {
182
- "fqn": "aws-cdk-lib.aws_s3.BucketBase",
183
- "version": "2.150.0"
184
- }
185
- }
186
- },
187
- "constructInfo": {
188
- "fqn": "aws-cdk-lib.aws_s3_assets.Asset",
189
- "version": "2.150.0"
190
- }
191
- },
192
- "Resource": {
193
- "id": "Resource",
194
- "path": "lamddb-use-existing-func/LambdaFunction/Resource",
195
- "attributes": {
196
- "aws:cdk:cloudformation:type": "AWS::Lambda::Function",
197
- "aws:cdk:cloudformation:props": {
198
- "code": {
199
- "s3Bucket": {
200
- "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
201
- },
202
- "s3Key": "0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8.zip"
203
- },
204
- "environment": {
205
- "variables": {
206
- "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1",
207
- "DDB_TABLE_NAME": {
208
- "Ref": "testlambdadynamodbstackDynamoTable8138E93B"
209
- }
210
- }
211
- },
212
- "handler": "index.handler",
213
- "role": {
214
- "Fn::GetAtt": [
215
- "LambdaFunctionServiceRole0C4CDE0B",
216
- "Arn"
217
- ]
218
- },
219
- "runtime": "nodejs20.x",
220
- "tracingConfig": {
221
- "mode": "Active"
222
- }
223
- }
224
- },
225
- "constructInfo": {
226
- "fqn": "aws-cdk-lib.aws_lambda.CfnFunction",
227
- "version": "2.150.0"
228
- }
229
- }
230
- },
231
- "constructInfo": {
232
- "fqn": "aws-cdk-lib.aws_lambda.Function",
233
- "version": "2.150.0"
234
- }
235
- },
236
- "test-lambda-dynamodb-stack": {
237
- "id": "test-lambda-dynamodb-stack",
238
- "path": "lamddb-use-existing-func/test-lambda-dynamodb-stack",
239
- "children": {
240
- "DynamoTable": {
241
- "id": "DynamoTable",
242
- "path": "lamddb-use-existing-func/test-lambda-dynamodb-stack/DynamoTable",
243
- "children": {
244
- "Resource": {
245
- "id": "Resource",
246
- "path": "lamddb-use-existing-func/test-lambda-dynamodb-stack/DynamoTable/Resource",
247
- "attributes": {
248
- "aws:cdk:cloudformation:type": "AWS::DynamoDB::Table",
249
- "aws:cdk:cloudformation:props": {
250
- "attributeDefinitions": [
251
- {
252
- "attributeName": "id",
253
- "attributeType": "S"
254
- }
255
- ],
256
- "billingMode": "PAY_PER_REQUEST",
257
- "keySchema": [
258
- {
259
- "attributeName": "id",
260
- "keyType": "HASH"
261
- }
262
- ],
263
- "pointInTimeRecoverySpecification": {
264
- "pointInTimeRecoveryEnabled": true
265
- },
266
- "sseSpecification": {
267
- "sseEnabled": true
268
- }
269
- }
270
- },
271
- "constructInfo": {
272
- "fqn": "aws-cdk-lib.aws_dynamodb.CfnTable",
273
- "version": "2.150.0"
274
- }
275
- },
276
- "ScalingRole": {
277
- "id": "ScalingRole",
278
- "path": "lamddb-use-existing-func/test-lambda-dynamodb-stack/DynamoTable/ScalingRole",
279
- "constructInfo": {
280
- "fqn": "aws-cdk-lib.Resource",
281
- "version": "2.150.0"
282
- }
283
- }
284
- },
285
- "constructInfo": {
286
- "fqn": "aws-cdk-lib.aws_dynamodb.Table",
287
- "version": "2.150.0"
288
- }
289
- }
290
- },
291
- "constructInfo": {
292
- "fqn": "@aws-solutions-constructs/aws-lambda-dynamodb.LambdaToDynamoDB",
293
- "version": "2.63.0"
294
- }
295
- },
296
- "Integ": {
297
- "id": "Integ",
298
- "path": "lamddb-use-existing-func/Integ",
299
- "children": {
300
- "DefaultTest": {
301
- "id": "DefaultTest",
302
- "path": "lamddb-use-existing-func/Integ/DefaultTest",
303
- "children": {
304
- "Default": {
305
- "id": "Default",
306
- "path": "lamddb-use-existing-func/Integ/DefaultTest/Default",
307
- "constructInfo": {
308
- "fqn": "constructs.Construct",
309
- "version": "10.3.0"
310
- }
311
- },
312
- "DeployAssert": {
313
- "id": "DeployAssert",
314
- "path": "lamddb-use-existing-func/Integ/DefaultTest/DeployAssert",
315
- "children": {
316
- "BootstrapVersion": {
317
- "id": "BootstrapVersion",
318
- "path": "lamddb-use-existing-func/Integ/DefaultTest/DeployAssert/BootstrapVersion",
319
- "constructInfo": {
320
- "fqn": "aws-cdk-lib.CfnParameter",
321
- "version": "2.150.0"
322
- }
323
- },
324
- "CheckBootstrapVersion": {
325
- "id": "CheckBootstrapVersion",
326
- "path": "lamddb-use-existing-func/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
327
- "constructInfo": {
328
- "fqn": "aws-cdk-lib.CfnRule",
329
- "version": "2.150.0"
330
- }
331
- }
332
- },
333
- "constructInfo": {
334
- "fqn": "aws-cdk-lib.Stack",
335
- "version": "2.150.0"
336
- }
337
- }
338
- },
339
- "constructInfo": {
340
- "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
341
- "version": "2.150.0-alpha.0"
342
- }
343
- }
344
- },
345
- "constructInfo": {
346
- "fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
347
- "version": "2.150.0-alpha.0"
348
- }
349
- },
350
- "BootstrapVersion": {
351
- "id": "BootstrapVersion",
352
- "path": "lamddb-use-existing-func/BootstrapVersion",
353
- "constructInfo": {
354
- "fqn": "aws-cdk-lib.CfnParameter",
355
- "version": "2.150.0"
356
- }
357
- },
358
- "CheckBootstrapVersion": {
359
- "id": "CheckBootstrapVersion",
360
- "path": "lamddb-use-existing-func/CheckBootstrapVersion",
361
- "constructInfo": {
362
- "fqn": "aws-cdk-lib.CfnRule",
363
- "version": "2.150.0"
364
- }
365
- }
366
- },
367
- "constructInfo": {
368
- "fqn": "aws-cdk-lib.Stack",
369
- "version": "2.150.0"
370
- }
371
- },
372
- "Tree": {
373
- "id": "Tree",
374
- "path": "Tree",
375
- "constructInfo": {
376
- "fqn": "constructs.Construct",
377
- "version": "10.3.0"
378
- }
379
- }
380
- },
381
- "constructInfo": {
382
- "fqn": "aws-cdk-lib.App",
383
- "version": "2.150.0"
384
- }
385
- }
386
- }
1
+ {"version":"tree-0.1","tree":{"id":"App","path":"","children":{"lamddb-use-existing-func":{"id":"lamddb-use-existing-func","path":"lamddb-use-existing-func","children":{"LambdaFunctionServiceRole":{"id":"LambdaFunctionServiceRole","path":"lamddb-use-existing-func/LambdaFunctionServiceRole","children":{"ImportLambdaFunctionServiceRole":{"id":"ImportLambdaFunctionServiceRole","path":"lamddb-use-existing-func/LambdaFunctionServiceRole/ImportLambdaFunctionServiceRole","constructInfo":{"fqn":"aws-cdk-lib.Resource","version":"2.186.0","metadata":["*"]}},"Resource":{"id":"Resource","path":"lamddb-use-existing-func/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":"lamddb-use-existing-func/LambdaFunctionServiceRole/DefaultPolicy","children":{"Resource":{"id":"Resource","path":"lamddb-use-existing-func/LambdaFunctionServiceRole/DefaultPolicy/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::IAM::Policy","aws:cdk:cloudformation:props":{"policyDocument":{"Statement":[{"Action":["dynamodb:BatchGetItem","dynamodb:BatchWriteItem","dynamodb:ConditionCheckItem","dynamodb:DeleteItem","dynamodb:DescribeTable","dynamodb:GetItem","dynamodb:GetRecords","dynamodb:GetShardIterator","dynamodb:PutItem","dynamodb:Query","dynamodb:Scan","dynamodb:UpdateItem"],"Effect":"Allow","Resource":[{"Fn::GetAtt":["testlambdadynamodbstackDynamoTable8138E93B","Arn"]},{"Ref":"AWS::NoValue"}]}],"Version":"2012-10-17"},"policyName":"LambdaFunctionServiceRoleDefaultPolicy126C8897","roles":[{"Ref":"LambdaFunctionServiceRole0C4CDE0B"}]}},"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":[{}]}]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.Role","version":"2.186.0","metadata":[{"assumedBy":{"principalAccount":"*","assumeRoleAction":"*"},"inlinePolicies":"*"},{"attachInlinePolicy":["*"]},{"attachInlinePolicy":["*"]},{"addToPrincipalPolicy":[{}]},{"attachInlinePolicy":["*"]},{"attachInlinePolicy":["*"]}]}},"LambdaFunction":{"id":"LambdaFunction","path":"lamddb-use-existing-func/LambdaFunction","children":{"Code":{"id":"Code","path":"lamddb-use-existing-func/LambdaFunction/Code","children":{"Stage":{"id":"Stage","path":"lamddb-use-existing-func/LambdaFunction/Code/Stage","constructInfo":{"fqn":"aws-cdk-lib.AssetStaging","version":"2.186.0"}},"AssetBucket":{"id":"AssetBucket","path":"lamddb-use-existing-func/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":"lamddb-use-existing-func/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":"a0c6248ec595d3ceec1177aa5ac5b494fdf4c66f1b88aa48086befd44f193d8c.zip"},"environment":{"variables":{"AWS_NODEJS_CONNECTION_REUSE_ENABLED":"1","DDB_TABLE_NAME":{"Ref":"testlambdadynamodbstackDynamoTable8138E93B"}}},"handler":"index.handler","role":{"Fn::GetAtt":["LambdaFunctionServiceRole0C4CDE0B","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":"lamddb-use-existing-func/LambdaFunction/inlinePolicyAddedToExecutionRole-0","children":{"Resource":{"id":"Resource","path":"lamddb-use-existing-func/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":"LambdaFunctioninlinePolicyAddedToExecutionRole007875684","roles":[{"Ref":"LambdaFunctionServiceRole0C4CDE0B"}]}},"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","runtime":"*","handler":"*","code":"*"},{"addEnvironment":["*","*",{"removeInEdge":true}]},{"addEnvironment":["*","*"]}]}},"test-lambda-dynamodb-stack":{"id":"test-lambda-dynamodb-stack","path":"lamddb-use-existing-func/test-lambda-dynamodb-stack","children":{"DynamoTable":{"id":"DynamoTable","path":"lamddb-use-existing-func/test-lambda-dynamodb-stack/DynamoTable","children":{"Resource":{"id":"Resource","path":"lamddb-use-existing-func/test-lambda-dynamodb-stack/DynamoTable/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::DynamoDB::Table","aws:cdk:cloudformation:props":{"attributeDefinitions":[{"attributeName":"id","attributeType":"S"}],"billingMode":"PAY_PER_REQUEST","keySchema":[{"attributeName":"id","keyType":"HASH"}],"pointInTimeRecoverySpecification":{"pointInTimeRecoveryEnabled":true},"sseSpecification":{"sseEnabled":true}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_dynamodb.CfnTable","version":"2.186.0"}},"ScalingRole":{"id":"ScalingRole","path":"lamddb-use-existing-func/test-lambda-dynamodb-stack/DynamoTable/ScalingRole","constructInfo":{"fqn":"aws-cdk-lib.Resource","version":"2.186.0","metadata":["*"]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_dynamodb.Table","version":"2.186.0","metadata":[{"billingMode":"PAY_PER_REQUEST","encryption":"AWS_MANAGED","pointInTimeRecovery":true,"partitionKey":{"name":"*","type":"S"}}]}}},"constructInfo":{"fqn":"@aws-solutions-constructs/aws-lambda-dynamodb.LambdaToDynamoDB","version":"2.80.0"}},"Integ":{"id":"Integ","path":"lamddb-use-existing-func/Integ","children":{"DefaultTest":{"id":"DefaultTest","path":"lamddb-use-existing-func/Integ/DefaultTest","children":{"Default":{"id":"Default","path":"lamddb-use-existing-func/Integ/DefaultTest/Default","constructInfo":{"fqn":"constructs.Construct","version":"10.4.2"}},"DeployAssert":{"id":"DeployAssert","path":"lamddb-use-existing-func/Integ/DefaultTest/DeployAssert","children":{"BootstrapVersion":{"id":"BootstrapVersion","path":"lamddb-use-existing-func/Integ/DefaultTest/DeployAssert/BootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnParameter","version":"2.186.0"}},"CheckBootstrapVersion":{"id":"CheckBootstrapVersion","path":"lamddb-use-existing-func/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":"lamddb-use-existing-func/BootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnParameter","version":"2.186.0"}},"CheckBootstrapVersion":{"id":"CheckBootstrapVersion","path":"lamddb-use-existing-func/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,8 +0,0 @@
1
- exports.handler = async function(event) {
2
- console.log('request:', JSON.stringify(event, undefined, 2));
3
- return {
4
- statusCode: 200,
5
- headers: { 'Content-Type': 'text/plain' },
6
- body: `Hello, CDK! You've hit ${event.path}\n`
7
- };
8
- };
@@ -1,8 +0,0 @@
1
- exports.handler = async function(event) {
2
- console.log('request:', JSON.stringify(event, undefined, 2));
3
- return {
4
- statusCode: 200,
5
- headers: { 'Content-Type': 'text/plain' },
6
- body: `Hello, CDK! You've hit ${event.path}\n`
7
- };
8
- };
@@ -1,8 +0,0 @@
1
- exports.handler = async function(event) {
2
- console.log('request:', JSON.stringify(event, undefined, 2));
3
- return {
4
- statusCode: 200,
5
- headers: { 'Content-Type': 'text/plain' },
6
- body: `Hello, CDK! You've hit ${event.path}\n`
7
- };
8
- };
@@ -1,8 +0,0 @@
1
- exports.handler = async function(event) {
2
- console.log('request:', JSON.stringify(event, undefined, 2));
3
- return {
4
- statusCode: 200,
5
- headers: { 'Content-Type': 'text/plain' },
6
- body: `Hello, CDK! You've hit ${event.path}\n`
7
- };
8
- };