@aws-solutions-constructs/aws-lambda-dynamodb 2.51.0 → 2.52.1

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 (75) hide show
  1. package/.eslintignore +2 -0
  2. package/.jsii +49 -4
  3. package/integ.config.json +7 -0
  4. package/lib/index.js +1 -1
  5. package/package.json +9 -8
  6. package/test/integ.lamddb-add-secondary-index.js +5 -2
  7. package/test/integ.lamddb-add-secondary-index.js.snapshot/asset.0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8/index.js +8 -0
  8. package/test/integ.lamddb-add-secondary-index.js.snapshot/cdk.out +1 -0
  9. package/test/integ.lamddb-add-secondary-index.js.snapshot/integ.json +12 -0
  10. package/test/integ.lamddb-add-secondary-index.js.snapshot/lamddb-add-secondary-index.assets.json +32 -0
  11. package/test/integ.lamddb-add-secondary-index.js.snapshot/lamddb-add-secondary-index.template.json +262 -0
  12. package/test/integ.lamddb-add-secondary-index.js.snapshot/lamddbaddsecondaryindexIntegDefaultTestDeployAssert3193B4D9.assets.json +19 -0
  13. package/test/integ.lamddb-add-secondary-index.js.snapshot/lamddbaddsecondaryindexIntegDefaultTestDeployAssert3193B4D9.template.json +36 -0
  14. package/test/integ.lamddb-add-secondary-index.js.snapshot/manifest.json +131 -0
  15. package/test/integ.lamddb-add-secondary-index.js.snapshot/tree.json +415 -0
  16. package/test/integ.lamddb-deployFunctionWithExistingVpc.js +6 -2
  17. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/asset.0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8/index.js +8 -0
  18. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/__entrypoint__.js +1 -0
  19. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/index.js +1 -0
  20. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/cdk.out +1 -0
  21. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/integ.json +12 -0
  22. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/lamddb-deployFunctionWithExistingVpc.assets.json +45 -0
  23. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/lamddb-deployFunctionWithExistingVpc.template.json +984 -0
  24. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/lamddbdeployFunctionWithExistingVpcIntegDefaultTestDeployAssertEE08E38E.assets.json +19 -0
  25. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/lamddbdeployFunctionWithExistingVpcIntegDefaultTestDeployAssertEE08E38E.template.json +36 -0
  26. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/manifest.json +323 -0
  27. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/tree.json +1372 -0
  28. package/test/integ.lamddb-deployFunctionWithVpc.js +6 -2
  29. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/asset.0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8/index.js +8 -0
  30. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/__entrypoint__.js +1 -0
  31. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/index.js +1 -0
  32. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/cdk.out +1 -0
  33. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/integ.json +12 -0
  34. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/lamddb-deployFunctionWithVpc.assets.json +45 -0
  35. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/lamddb-deployFunctionWithVpc.template.json +694 -0
  36. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/lamddbdeployFunctionWithVpcIntegDefaultTestDeployAssert0AB8275C.assets.json +19 -0
  37. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/lamddbdeployFunctionWithVpcIntegDefaultTestDeployAssert0AB8275C.template.json +36 -0
  38. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/manifest.json +227 -0
  39. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/tree.json +954 -0
  40. package/test/integ.lamddb-no-arguments.js +5 -2
  41. package/test/integ.lamddb-no-arguments.js.snapshot/asset.0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8/index.js +8 -0
  42. package/test/integ.lamddb-no-arguments.js.snapshot/cdk.out +1 -0
  43. package/test/integ.lamddb-no-arguments.js.snapshot/integ.json +12 -0
  44. package/test/integ.lamddb-no-arguments.js.snapshot/lamddb-no-arguments.assets.json +32 -0
  45. package/test/integ.lamddb-no-arguments.js.snapshot/lamddb-no-arguments.template.json +233 -0
  46. package/test/integ.lamddb-no-arguments.js.snapshot/lamddbnoargumentsIntegDefaultTestDeployAssert248B75D0.assets.json +19 -0
  47. package/test/integ.lamddb-no-arguments.js.snapshot/lamddbnoargumentsIntegDefaultTestDeployAssert248B75D0.template.json +36 -0
  48. package/test/integ.lamddb-no-arguments.js.snapshot/manifest.json +131 -0
  49. package/test/integ.lamddb-no-arguments.js.snapshot/tree.json +386 -0
  50. package/test/integ.lamddb-set-billing-mode.js +5 -2
  51. package/test/integ.lamddb-set-billing-mode.js.snapshot/asset.0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8/index.js +8 -0
  52. package/test/integ.lamddb-set-billing-mode.js.snapshot/cdk.out +1 -0
  53. package/test/integ.lamddb-set-billing-mode.js.snapshot/integ.json +12 -0
  54. package/test/integ.lamddb-set-billing-mode.js.snapshot/lamddb-set-billing-mode.assets.json +32 -0
  55. package/test/integ.lamddb-set-billing-mode.js.snapshot/lamddb-set-billing-mode.template.json +246 -0
  56. package/test/integ.lamddb-set-billing-mode.js.snapshot/lamddbsetbillingmodeIntegDefaultTestDeployAssertDAE32272.assets.json +19 -0
  57. package/test/integ.lamddb-set-billing-mode.js.snapshot/lamddbsetbillingmodeIntegDefaultTestDeployAssertDAE32272.template.json +36 -0
  58. package/test/integ.lamddb-set-billing-mode.js.snapshot/manifest.json +131 -0
  59. package/test/integ.lamddb-set-billing-mode.js.snapshot/tree.json +389 -0
  60. package/test/integ.lamddb-use-existing-func.js +5 -2
  61. package/test/integ.lamddb-use-existing-func.js.snapshot/asset.0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8/index.js +8 -0
  62. package/test/integ.lamddb-use-existing-func.js.snapshot/cdk.out +1 -0
  63. package/test/integ.lamddb-use-existing-func.js.snapshot/integ.json +12 -0
  64. package/test/integ.lamddb-use-existing-func.js.snapshot/lamddb-use-existing-func.assets.json +32 -0
  65. package/test/integ.lamddb-use-existing-func.js.snapshot/lamddb-use-existing-func.template.json +233 -0
  66. package/test/integ.lamddb-use-existing-func.js.snapshot/lamddbuseexistingfuncIntegDefaultTestDeployAssert48D284DD.assets.json +19 -0
  67. package/test/integ.lamddb-use-existing-func.js.snapshot/lamddbuseexistingfuncIntegDefaultTestDeployAssert48D284DD.template.json +36 -0
  68. package/test/integ.lamddb-use-existing-func.js.snapshot/manifest.json +131 -0
  69. package/test/integ.lamddb-use-existing-func.js.snapshot/tree.json +386 -0
  70. package/test/integ.lamddb-add-secondary-index.expected.json +0 -262
  71. package/test/integ.lamddb-deployFunctionWithExistingVpc.expected.json +0 -1012
  72. package/test/integ.lamddb-deployFunctionWithVpc.expected.json +0 -609
  73. package/test/integ.lamddb-no-arguments.expected.json +0 -233
  74. package/test/integ.lamddb-set-billing-mode.expected.json +0 -246
  75. package/test/integ.lamddb-use-existing-func.expected.json +0 -233
@@ -0,0 +1,954 @@
1
+ {
2
+ "version": "tree-0.1",
3
+ "tree": {
4
+ "id": "App",
5
+ "path": "",
6
+ "children": {
7
+ "lamddb-deployFunctionWithVpc": {
8
+ "id": "lamddb-deployFunctionWithVpc",
9
+ "path": "lamddb-deployFunctionWithVpc",
10
+ "children": {
11
+ "test-lambda-dynamodb-stack": {
12
+ "id": "test-lambda-dynamodb-stack",
13
+ "path": "lamddb-deployFunctionWithVpc/test-lambda-dynamodb-stack",
14
+ "children": {
15
+ "LambdaFunctionServiceRole": {
16
+ "id": "LambdaFunctionServiceRole",
17
+ "path": "lamddb-deployFunctionWithVpc/test-lambda-dynamodb-stack/LambdaFunctionServiceRole",
18
+ "children": {
19
+ "ImportLambdaFunctionServiceRole": {
20
+ "id": "ImportLambdaFunctionServiceRole",
21
+ "path": "lamddb-deployFunctionWithVpc/test-lambda-dynamodb-stack/LambdaFunctionServiceRole/ImportLambdaFunctionServiceRole",
22
+ "constructInfo": {
23
+ "fqn": "aws-cdk-lib.Resource",
24
+ "version": "2.118.0"
25
+ }
26
+ },
27
+ "Resource": {
28
+ "id": "Resource",
29
+ "path": "lamddb-deployFunctionWithVpc/test-lambda-dynamodb-stack/LambdaFunctionServiceRole/Resource",
30
+ "attributes": {
31
+ "aws:cdk:cloudformation:type": "AWS::IAM::Role",
32
+ "aws:cdk:cloudformation:props": {
33
+ "assumeRolePolicyDocument": {
34
+ "Statement": [
35
+ {
36
+ "Action": "sts:AssumeRole",
37
+ "Effect": "Allow",
38
+ "Principal": {
39
+ "Service": "lambda.amazonaws.com"
40
+ }
41
+ }
42
+ ],
43
+ "Version": "2012-10-17"
44
+ },
45
+ "policies": [
46
+ {
47
+ "policyName": "LambdaFunctionServiceRolePolicy",
48
+ "policyDocument": {
49
+ "Statement": [
50
+ {
51
+ "Action": [
52
+ "logs:CreateLogGroup",
53
+ "logs:CreateLogStream",
54
+ "logs:PutLogEvents"
55
+ ],
56
+ "Effect": "Allow",
57
+ "Resource": {
58
+ "Fn::Join": [
59
+ "",
60
+ [
61
+ "arn:",
62
+ {
63
+ "Ref": "AWS::Partition"
64
+ },
65
+ ":logs:",
66
+ {
67
+ "Ref": "AWS::Region"
68
+ },
69
+ ":",
70
+ {
71
+ "Ref": "AWS::AccountId"
72
+ },
73
+ ":log-group:/aws/lambda/*"
74
+ ]
75
+ ]
76
+ }
77
+ }
78
+ ],
79
+ "Version": "2012-10-17"
80
+ }
81
+ }
82
+ ]
83
+ }
84
+ },
85
+ "constructInfo": {
86
+ "fqn": "aws-cdk-lib.aws_iam.CfnRole",
87
+ "version": "2.118.0"
88
+ }
89
+ },
90
+ "DefaultPolicy": {
91
+ "id": "DefaultPolicy",
92
+ "path": "lamddb-deployFunctionWithVpc/test-lambda-dynamodb-stack/LambdaFunctionServiceRole/DefaultPolicy",
93
+ "children": {
94
+ "Resource": {
95
+ "id": "Resource",
96
+ "path": "lamddb-deployFunctionWithVpc/test-lambda-dynamodb-stack/LambdaFunctionServiceRole/DefaultPolicy/Resource",
97
+ "attributes": {
98
+ "aws:cdk:cloudformation:type": "AWS::IAM::Policy",
99
+ "aws:cdk:cloudformation:props": {
100
+ "policyDocument": {
101
+ "Statement": [
102
+ {
103
+ "Action": [
104
+ "ec2:AssignPrivateIpAddresses",
105
+ "ec2:CreateNetworkInterface",
106
+ "ec2:DeleteNetworkInterface",
107
+ "ec2:DescribeNetworkInterfaces",
108
+ "ec2:UnassignPrivateIpAddresses",
109
+ "xray:PutTelemetryRecords",
110
+ "xray:PutTraceSegments"
111
+ ],
112
+ "Effect": "Allow",
113
+ "Resource": "*"
114
+ },
115
+ {
116
+ "Action": [
117
+ "dynamodb:BatchGetItem",
118
+ "dynamodb:BatchWriteItem",
119
+ "dynamodb:ConditionCheckItem",
120
+ "dynamodb:DeleteItem",
121
+ "dynamodb:DescribeTable",
122
+ "dynamodb:GetItem",
123
+ "dynamodb:GetRecords",
124
+ "dynamodb:GetShardIterator",
125
+ "dynamodb:PutItem",
126
+ "dynamodb:Query",
127
+ "dynamodb:Scan",
128
+ "dynamodb:UpdateItem"
129
+ ],
130
+ "Effect": "Allow",
131
+ "Resource": [
132
+ {
133
+ "Fn::GetAtt": [
134
+ "testlambdadynamodbstackDynamoTable8138E93B",
135
+ "Arn"
136
+ ]
137
+ },
138
+ {
139
+ "Ref": "AWS::NoValue"
140
+ }
141
+ ]
142
+ }
143
+ ],
144
+ "Version": "2012-10-17"
145
+ },
146
+ "policyName": "testlambdadynamodbstackLambdaFunctionServiceRoleDefaultPolicy547FB7F4",
147
+ "roles": [
148
+ {
149
+ "Ref": "testlambdadynamodbstackLambdaFunctionServiceRole758347A1"
150
+ }
151
+ ]
152
+ }
153
+ },
154
+ "constructInfo": {
155
+ "fqn": "aws-cdk-lib.aws_iam.CfnPolicy",
156
+ "version": "2.118.0"
157
+ }
158
+ }
159
+ },
160
+ "constructInfo": {
161
+ "fqn": "aws-cdk-lib.aws_iam.Policy",
162
+ "version": "2.118.0"
163
+ }
164
+ }
165
+ },
166
+ "constructInfo": {
167
+ "fqn": "aws-cdk-lib.aws_iam.Role",
168
+ "version": "2.118.0"
169
+ }
170
+ },
171
+ "ReplaceDefaultSecurityGroup-security-group": {
172
+ "id": "ReplaceDefaultSecurityGroup-security-group",
173
+ "path": "lamddb-deployFunctionWithVpc/test-lambda-dynamodb-stack/ReplaceDefaultSecurityGroup-security-group",
174
+ "children": {
175
+ "Resource": {
176
+ "id": "Resource",
177
+ "path": "lamddb-deployFunctionWithVpc/test-lambda-dynamodb-stack/ReplaceDefaultSecurityGroup-security-group/Resource",
178
+ "attributes": {
179
+ "aws:cdk:cloudformation:type": "AWS::EC2::SecurityGroup",
180
+ "aws:cdk:cloudformation:props": {
181
+ "groupDescription": "lamddb-deployFunctionWithVpc/test-lambda-dynamodb-stack/ReplaceDefaultSecurityGroup-security-group",
182
+ "securityGroupEgress": [
183
+ {
184
+ "cidrIp": "0.0.0.0/0",
185
+ "description": "Allow all outbound traffic by default",
186
+ "ipProtocol": "-1"
187
+ }
188
+ ],
189
+ "vpcId": {
190
+ "Ref": "Vpc8378EB38"
191
+ }
192
+ }
193
+ },
194
+ "constructInfo": {
195
+ "fqn": "aws-cdk-lib.aws_ec2.CfnSecurityGroup",
196
+ "version": "2.118.0"
197
+ }
198
+ }
199
+ },
200
+ "constructInfo": {
201
+ "fqn": "aws-cdk-lib.aws_ec2.SecurityGroup",
202
+ "version": "2.118.0"
203
+ }
204
+ },
205
+ "LambdaFunction": {
206
+ "id": "LambdaFunction",
207
+ "path": "lamddb-deployFunctionWithVpc/test-lambda-dynamodb-stack/LambdaFunction",
208
+ "children": {
209
+ "Code": {
210
+ "id": "Code",
211
+ "path": "lamddb-deployFunctionWithVpc/test-lambda-dynamodb-stack/LambdaFunction/Code",
212
+ "children": {
213
+ "Stage": {
214
+ "id": "Stage",
215
+ "path": "lamddb-deployFunctionWithVpc/test-lambda-dynamodb-stack/LambdaFunction/Code/Stage",
216
+ "constructInfo": {
217
+ "fqn": "aws-cdk-lib.AssetStaging",
218
+ "version": "2.118.0"
219
+ }
220
+ },
221
+ "AssetBucket": {
222
+ "id": "AssetBucket",
223
+ "path": "lamddb-deployFunctionWithVpc/test-lambda-dynamodb-stack/LambdaFunction/Code/AssetBucket",
224
+ "constructInfo": {
225
+ "fqn": "aws-cdk-lib.aws_s3.BucketBase",
226
+ "version": "2.118.0"
227
+ }
228
+ }
229
+ },
230
+ "constructInfo": {
231
+ "fqn": "aws-cdk-lib.aws_s3_assets.Asset",
232
+ "version": "2.118.0"
233
+ }
234
+ },
235
+ "Resource": {
236
+ "id": "Resource",
237
+ "path": "lamddb-deployFunctionWithVpc/test-lambda-dynamodb-stack/LambdaFunction/Resource",
238
+ "attributes": {
239
+ "aws:cdk:cloudformation:type": "AWS::Lambda::Function",
240
+ "aws:cdk:cloudformation:props": {
241
+ "code": {
242
+ "s3Bucket": {
243
+ "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
244
+ },
245
+ "s3Key": "0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8.zip"
246
+ },
247
+ "environment": {
248
+ "variables": {
249
+ "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1",
250
+ "DDB_TABLE_NAME": {
251
+ "Ref": "testlambdadynamodbstackDynamoTable8138E93B"
252
+ }
253
+ }
254
+ },
255
+ "handler": "index.handler",
256
+ "role": {
257
+ "Fn::GetAtt": [
258
+ "testlambdadynamodbstackLambdaFunctionServiceRole758347A1",
259
+ "Arn"
260
+ ]
261
+ },
262
+ "runtime": "nodejs16.x",
263
+ "tracingConfig": {
264
+ "mode": "Active"
265
+ },
266
+ "vpcConfig": {
267
+ "subnetIds": [
268
+ {
269
+ "Ref": "VpcisolatedSubnet1SubnetE62B1B9B"
270
+ },
271
+ {
272
+ "Ref": "VpcisolatedSubnet2Subnet39217055"
273
+ }
274
+ ],
275
+ "securityGroupIds": [
276
+ {
277
+ "Fn::GetAtt": [
278
+ "testlambdadynamodbstackReplaceDefaultSecurityGroupsecuritygroup15025C82",
279
+ "GroupId"
280
+ ]
281
+ }
282
+ ]
283
+ }
284
+ }
285
+ },
286
+ "constructInfo": {
287
+ "fqn": "aws-cdk-lib.aws_lambda.CfnFunction",
288
+ "version": "2.118.0"
289
+ }
290
+ }
291
+ },
292
+ "constructInfo": {
293
+ "fqn": "aws-cdk-lib.aws_lambda.Function",
294
+ "version": "2.118.0"
295
+ }
296
+ },
297
+ "DynamoTable": {
298
+ "id": "DynamoTable",
299
+ "path": "lamddb-deployFunctionWithVpc/test-lambda-dynamodb-stack/DynamoTable",
300
+ "children": {
301
+ "Resource": {
302
+ "id": "Resource",
303
+ "path": "lamddb-deployFunctionWithVpc/test-lambda-dynamodb-stack/DynamoTable/Resource",
304
+ "attributes": {
305
+ "aws:cdk:cloudformation:type": "AWS::DynamoDB::Table",
306
+ "aws:cdk:cloudformation:props": {
307
+ "attributeDefinitions": [
308
+ {
309
+ "attributeName": "id",
310
+ "attributeType": "S"
311
+ }
312
+ ],
313
+ "billingMode": "PAY_PER_REQUEST",
314
+ "keySchema": [
315
+ {
316
+ "attributeName": "id",
317
+ "keyType": "HASH"
318
+ }
319
+ ],
320
+ "pointInTimeRecoverySpecification": {
321
+ "pointInTimeRecoveryEnabled": true
322
+ },
323
+ "sseSpecification": {
324
+ "sseEnabled": true
325
+ }
326
+ }
327
+ },
328
+ "constructInfo": {
329
+ "fqn": "aws-cdk-lib.aws_dynamodb.CfnTable",
330
+ "version": "2.118.0"
331
+ }
332
+ },
333
+ "ScalingRole": {
334
+ "id": "ScalingRole",
335
+ "path": "lamddb-deployFunctionWithVpc/test-lambda-dynamodb-stack/DynamoTable/ScalingRole",
336
+ "constructInfo": {
337
+ "fqn": "aws-cdk-lib.Resource",
338
+ "version": "2.118.0"
339
+ }
340
+ }
341
+ },
342
+ "constructInfo": {
343
+ "fqn": "aws-cdk-lib.aws_dynamodb.Table",
344
+ "version": "2.118.0"
345
+ }
346
+ }
347
+ },
348
+ "constructInfo": {
349
+ "fqn": "@aws-solutions-constructs/aws-lambda-dynamodb.LambdaToDynamoDB",
350
+ "version": "2.51.0"
351
+ }
352
+ },
353
+ "Vpc": {
354
+ "id": "Vpc",
355
+ "path": "lamddb-deployFunctionWithVpc/Vpc",
356
+ "children": {
357
+ "Resource": {
358
+ "id": "Resource",
359
+ "path": "lamddb-deployFunctionWithVpc/Vpc/Resource",
360
+ "attributes": {
361
+ "aws:cdk:cloudformation:type": "AWS::EC2::VPC",
362
+ "aws:cdk:cloudformation:props": {
363
+ "cidrBlock": "10.0.0.0/16",
364
+ "enableDnsHostnames": true,
365
+ "enableDnsSupport": true,
366
+ "instanceTenancy": "default",
367
+ "tags": [
368
+ {
369
+ "key": "Name",
370
+ "value": "lamddb-deployFunctionWithVpc/Vpc"
371
+ }
372
+ ]
373
+ }
374
+ },
375
+ "constructInfo": {
376
+ "fqn": "aws-cdk-lib.aws_ec2.CfnVPC",
377
+ "version": "2.118.0"
378
+ }
379
+ },
380
+ "isolatedSubnet1": {
381
+ "id": "isolatedSubnet1",
382
+ "path": "lamddb-deployFunctionWithVpc/Vpc/isolatedSubnet1",
383
+ "children": {
384
+ "Subnet": {
385
+ "id": "Subnet",
386
+ "path": "lamddb-deployFunctionWithVpc/Vpc/isolatedSubnet1/Subnet",
387
+ "attributes": {
388
+ "aws:cdk:cloudformation:type": "AWS::EC2::Subnet",
389
+ "aws:cdk:cloudformation:props": {
390
+ "availabilityZone": {
391
+ "Fn::Select": [
392
+ 0,
393
+ {
394
+ "Fn::GetAZs": ""
395
+ }
396
+ ]
397
+ },
398
+ "cidrBlock": "10.0.0.0/18",
399
+ "mapPublicIpOnLaunch": false,
400
+ "tags": [
401
+ {
402
+ "key": "aws-cdk:subnet-name",
403
+ "value": "isolated"
404
+ },
405
+ {
406
+ "key": "aws-cdk:subnet-type",
407
+ "value": "Isolated"
408
+ },
409
+ {
410
+ "key": "Name",
411
+ "value": "lamddb-deployFunctionWithVpc/Vpc/isolatedSubnet1"
412
+ }
413
+ ],
414
+ "vpcId": {
415
+ "Ref": "Vpc8378EB38"
416
+ }
417
+ }
418
+ },
419
+ "constructInfo": {
420
+ "fqn": "aws-cdk-lib.aws_ec2.CfnSubnet",
421
+ "version": "2.118.0"
422
+ }
423
+ },
424
+ "Acl": {
425
+ "id": "Acl",
426
+ "path": "lamddb-deployFunctionWithVpc/Vpc/isolatedSubnet1/Acl",
427
+ "constructInfo": {
428
+ "fqn": "aws-cdk-lib.Resource",
429
+ "version": "2.118.0"
430
+ }
431
+ },
432
+ "RouteTable": {
433
+ "id": "RouteTable",
434
+ "path": "lamddb-deployFunctionWithVpc/Vpc/isolatedSubnet1/RouteTable",
435
+ "attributes": {
436
+ "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable",
437
+ "aws:cdk:cloudformation:props": {
438
+ "tags": [
439
+ {
440
+ "key": "Name",
441
+ "value": "lamddb-deployFunctionWithVpc/Vpc/isolatedSubnet1"
442
+ }
443
+ ],
444
+ "vpcId": {
445
+ "Ref": "Vpc8378EB38"
446
+ }
447
+ }
448
+ },
449
+ "constructInfo": {
450
+ "fqn": "aws-cdk-lib.aws_ec2.CfnRouteTable",
451
+ "version": "2.118.0"
452
+ }
453
+ },
454
+ "RouteTableAssociation": {
455
+ "id": "RouteTableAssociation",
456
+ "path": "lamddb-deployFunctionWithVpc/Vpc/isolatedSubnet1/RouteTableAssociation",
457
+ "attributes": {
458
+ "aws:cdk:cloudformation:type": "AWS::EC2::SubnetRouteTableAssociation",
459
+ "aws:cdk:cloudformation:props": {
460
+ "routeTableId": {
461
+ "Ref": "VpcisolatedSubnet1RouteTableE442650B"
462
+ },
463
+ "subnetId": {
464
+ "Ref": "VpcisolatedSubnet1SubnetE62B1B9B"
465
+ }
466
+ }
467
+ },
468
+ "constructInfo": {
469
+ "fqn": "aws-cdk-lib.aws_ec2.CfnSubnetRouteTableAssociation",
470
+ "version": "2.118.0"
471
+ }
472
+ }
473
+ },
474
+ "constructInfo": {
475
+ "fqn": "aws-cdk-lib.aws_ec2.PrivateSubnet",
476
+ "version": "2.118.0"
477
+ }
478
+ },
479
+ "isolatedSubnet2": {
480
+ "id": "isolatedSubnet2",
481
+ "path": "lamddb-deployFunctionWithVpc/Vpc/isolatedSubnet2",
482
+ "children": {
483
+ "Subnet": {
484
+ "id": "Subnet",
485
+ "path": "lamddb-deployFunctionWithVpc/Vpc/isolatedSubnet2/Subnet",
486
+ "attributes": {
487
+ "aws:cdk:cloudformation:type": "AWS::EC2::Subnet",
488
+ "aws:cdk:cloudformation:props": {
489
+ "availabilityZone": {
490
+ "Fn::Select": [
491
+ 1,
492
+ {
493
+ "Fn::GetAZs": ""
494
+ }
495
+ ]
496
+ },
497
+ "cidrBlock": "10.0.64.0/18",
498
+ "mapPublicIpOnLaunch": false,
499
+ "tags": [
500
+ {
501
+ "key": "aws-cdk:subnet-name",
502
+ "value": "isolated"
503
+ },
504
+ {
505
+ "key": "aws-cdk:subnet-type",
506
+ "value": "Isolated"
507
+ },
508
+ {
509
+ "key": "Name",
510
+ "value": "lamddb-deployFunctionWithVpc/Vpc/isolatedSubnet2"
511
+ }
512
+ ],
513
+ "vpcId": {
514
+ "Ref": "Vpc8378EB38"
515
+ }
516
+ }
517
+ },
518
+ "constructInfo": {
519
+ "fqn": "aws-cdk-lib.aws_ec2.CfnSubnet",
520
+ "version": "2.118.0"
521
+ }
522
+ },
523
+ "Acl": {
524
+ "id": "Acl",
525
+ "path": "lamddb-deployFunctionWithVpc/Vpc/isolatedSubnet2/Acl",
526
+ "constructInfo": {
527
+ "fqn": "aws-cdk-lib.Resource",
528
+ "version": "2.118.0"
529
+ }
530
+ },
531
+ "RouteTable": {
532
+ "id": "RouteTable",
533
+ "path": "lamddb-deployFunctionWithVpc/Vpc/isolatedSubnet2/RouteTable",
534
+ "attributes": {
535
+ "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable",
536
+ "aws:cdk:cloudformation:props": {
537
+ "tags": [
538
+ {
539
+ "key": "Name",
540
+ "value": "lamddb-deployFunctionWithVpc/Vpc/isolatedSubnet2"
541
+ }
542
+ ],
543
+ "vpcId": {
544
+ "Ref": "Vpc8378EB38"
545
+ }
546
+ }
547
+ },
548
+ "constructInfo": {
549
+ "fqn": "aws-cdk-lib.aws_ec2.CfnRouteTable",
550
+ "version": "2.118.0"
551
+ }
552
+ },
553
+ "RouteTableAssociation": {
554
+ "id": "RouteTableAssociation",
555
+ "path": "lamddb-deployFunctionWithVpc/Vpc/isolatedSubnet2/RouteTableAssociation",
556
+ "attributes": {
557
+ "aws:cdk:cloudformation:type": "AWS::EC2::SubnetRouteTableAssociation",
558
+ "aws:cdk:cloudformation:props": {
559
+ "routeTableId": {
560
+ "Ref": "VpcisolatedSubnet2RouteTable334F9764"
561
+ },
562
+ "subnetId": {
563
+ "Ref": "VpcisolatedSubnet2Subnet39217055"
564
+ }
565
+ }
566
+ },
567
+ "constructInfo": {
568
+ "fqn": "aws-cdk-lib.aws_ec2.CfnSubnetRouteTableAssociation",
569
+ "version": "2.118.0"
570
+ }
571
+ }
572
+ },
573
+ "constructInfo": {
574
+ "fqn": "aws-cdk-lib.aws_ec2.PrivateSubnet",
575
+ "version": "2.118.0"
576
+ }
577
+ },
578
+ "RestrictDefaultSecurityGroupCustomResource": {
579
+ "id": "RestrictDefaultSecurityGroupCustomResource",
580
+ "path": "lamddb-deployFunctionWithVpc/Vpc/RestrictDefaultSecurityGroupCustomResource",
581
+ "children": {
582
+ "Default": {
583
+ "id": "Default",
584
+ "path": "lamddb-deployFunctionWithVpc/Vpc/RestrictDefaultSecurityGroupCustomResource/Default",
585
+ "constructInfo": {
586
+ "fqn": "aws-cdk-lib.CfnResource",
587
+ "version": "2.118.0"
588
+ }
589
+ }
590
+ },
591
+ "constructInfo": {
592
+ "fqn": "aws-cdk-lib.CustomResource",
593
+ "version": "2.118.0"
594
+ }
595
+ },
596
+ "FlowLog": {
597
+ "id": "FlowLog",
598
+ "path": "lamddb-deployFunctionWithVpc/Vpc/FlowLog",
599
+ "children": {
600
+ "IAMRole": {
601
+ "id": "IAMRole",
602
+ "path": "lamddb-deployFunctionWithVpc/Vpc/FlowLog/IAMRole",
603
+ "children": {
604
+ "ImportIAMRole": {
605
+ "id": "ImportIAMRole",
606
+ "path": "lamddb-deployFunctionWithVpc/Vpc/FlowLog/IAMRole/ImportIAMRole",
607
+ "constructInfo": {
608
+ "fqn": "aws-cdk-lib.Resource",
609
+ "version": "2.118.0"
610
+ }
611
+ },
612
+ "Resource": {
613
+ "id": "Resource",
614
+ "path": "lamddb-deployFunctionWithVpc/Vpc/FlowLog/IAMRole/Resource",
615
+ "attributes": {
616
+ "aws:cdk:cloudformation:type": "AWS::IAM::Role",
617
+ "aws:cdk:cloudformation:props": {
618
+ "assumeRolePolicyDocument": {
619
+ "Statement": [
620
+ {
621
+ "Action": "sts:AssumeRole",
622
+ "Effect": "Allow",
623
+ "Principal": {
624
+ "Service": "vpc-flow-logs.amazonaws.com"
625
+ }
626
+ }
627
+ ],
628
+ "Version": "2012-10-17"
629
+ },
630
+ "tags": [
631
+ {
632
+ "key": "Name",
633
+ "value": "lamddb-deployFunctionWithVpc/Vpc/FlowLog"
634
+ }
635
+ ]
636
+ }
637
+ },
638
+ "constructInfo": {
639
+ "fqn": "aws-cdk-lib.aws_iam.CfnRole",
640
+ "version": "2.118.0"
641
+ }
642
+ },
643
+ "DefaultPolicy": {
644
+ "id": "DefaultPolicy",
645
+ "path": "lamddb-deployFunctionWithVpc/Vpc/FlowLog/IAMRole/DefaultPolicy",
646
+ "children": {
647
+ "Resource": {
648
+ "id": "Resource",
649
+ "path": "lamddb-deployFunctionWithVpc/Vpc/FlowLog/IAMRole/DefaultPolicy/Resource",
650
+ "attributes": {
651
+ "aws:cdk:cloudformation:type": "AWS::IAM::Policy",
652
+ "aws:cdk:cloudformation:props": {
653
+ "policyDocument": {
654
+ "Statement": [
655
+ {
656
+ "Action": [
657
+ "logs:CreateLogStream",
658
+ "logs:DescribeLogStreams",
659
+ "logs:PutLogEvents"
660
+ ],
661
+ "Effect": "Allow",
662
+ "Resource": {
663
+ "Fn::GetAtt": [
664
+ "VpcFlowLogLogGroup7B5C56B9",
665
+ "Arn"
666
+ ]
667
+ }
668
+ },
669
+ {
670
+ "Action": "iam:PassRole",
671
+ "Effect": "Allow",
672
+ "Resource": {
673
+ "Fn::GetAtt": [
674
+ "VpcFlowLogIAMRole6A475D41",
675
+ "Arn"
676
+ ]
677
+ }
678
+ }
679
+ ],
680
+ "Version": "2012-10-17"
681
+ },
682
+ "policyName": "VpcFlowLogIAMRoleDefaultPolicy406FB995",
683
+ "roles": [
684
+ {
685
+ "Ref": "VpcFlowLogIAMRole6A475D41"
686
+ }
687
+ ]
688
+ }
689
+ },
690
+ "constructInfo": {
691
+ "fqn": "aws-cdk-lib.aws_iam.CfnPolicy",
692
+ "version": "2.118.0"
693
+ }
694
+ }
695
+ },
696
+ "constructInfo": {
697
+ "fqn": "aws-cdk-lib.aws_iam.Policy",
698
+ "version": "2.118.0"
699
+ }
700
+ }
701
+ },
702
+ "constructInfo": {
703
+ "fqn": "aws-cdk-lib.aws_iam.Role",
704
+ "version": "2.118.0"
705
+ }
706
+ },
707
+ "LogGroup": {
708
+ "id": "LogGroup",
709
+ "path": "lamddb-deployFunctionWithVpc/Vpc/FlowLog/LogGroup",
710
+ "children": {
711
+ "Resource": {
712
+ "id": "Resource",
713
+ "path": "lamddb-deployFunctionWithVpc/Vpc/FlowLog/LogGroup/Resource",
714
+ "attributes": {
715
+ "aws:cdk:cloudformation:type": "AWS::Logs::LogGroup",
716
+ "aws:cdk:cloudformation:props": {
717
+ "retentionInDays": 731,
718
+ "tags": [
719
+ {
720
+ "key": "Name",
721
+ "value": "lamddb-deployFunctionWithVpc/Vpc/FlowLog"
722
+ }
723
+ ]
724
+ }
725
+ },
726
+ "constructInfo": {
727
+ "fqn": "aws-cdk-lib.aws_logs.CfnLogGroup",
728
+ "version": "2.118.0"
729
+ }
730
+ }
731
+ },
732
+ "constructInfo": {
733
+ "fqn": "aws-cdk-lib.aws_logs.LogGroup",
734
+ "version": "2.118.0"
735
+ }
736
+ },
737
+ "FlowLog": {
738
+ "id": "FlowLog",
739
+ "path": "lamddb-deployFunctionWithVpc/Vpc/FlowLog/FlowLog",
740
+ "attributes": {
741
+ "aws:cdk:cloudformation:type": "AWS::EC2::FlowLog",
742
+ "aws:cdk:cloudformation:props": {
743
+ "deliverLogsPermissionArn": {
744
+ "Fn::GetAtt": [
745
+ "VpcFlowLogIAMRole6A475D41",
746
+ "Arn"
747
+ ]
748
+ },
749
+ "logDestinationType": "cloud-watch-logs",
750
+ "logGroupName": {
751
+ "Ref": "VpcFlowLogLogGroup7B5C56B9"
752
+ },
753
+ "resourceId": {
754
+ "Ref": "Vpc8378EB38"
755
+ },
756
+ "resourceType": "VPC",
757
+ "tags": [
758
+ {
759
+ "key": "Name",
760
+ "value": "lamddb-deployFunctionWithVpc/Vpc/FlowLog"
761
+ }
762
+ ],
763
+ "trafficType": "ALL"
764
+ }
765
+ },
766
+ "constructInfo": {
767
+ "fqn": "aws-cdk-lib.aws_ec2.CfnFlowLog",
768
+ "version": "2.118.0"
769
+ }
770
+ }
771
+ },
772
+ "constructInfo": {
773
+ "fqn": "aws-cdk-lib.aws_ec2.FlowLog",
774
+ "version": "2.118.0"
775
+ }
776
+ },
777
+ "DDB": {
778
+ "id": "DDB",
779
+ "path": "lamddb-deployFunctionWithVpc/Vpc/DDB",
780
+ "children": {
781
+ "Resource": {
782
+ "id": "Resource",
783
+ "path": "lamddb-deployFunctionWithVpc/Vpc/DDB/Resource",
784
+ "attributes": {
785
+ "aws:cdk:cloudformation:type": "AWS::EC2::VPCEndpoint",
786
+ "aws:cdk:cloudformation:props": {
787
+ "routeTableIds": [
788
+ {
789
+ "Ref": "VpcisolatedSubnet1RouteTableE442650B"
790
+ },
791
+ {
792
+ "Ref": "VpcisolatedSubnet2RouteTable334F9764"
793
+ }
794
+ ],
795
+ "serviceName": {
796
+ "Fn::Join": [
797
+ "",
798
+ [
799
+ "com.amazonaws.",
800
+ {
801
+ "Ref": "AWS::Region"
802
+ },
803
+ ".dynamodb"
804
+ ]
805
+ ]
806
+ },
807
+ "vpcEndpointType": "Gateway",
808
+ "vpcId": {
809
+ "Ref": "Vpc8378EB38"
810
+ }
811
+ }
812
+ },
813
+ "constructInfo": {
814
+ "fqn": "aws-cdk-lib.aws_ec2.CfnVPCEndpoint",
815
+ "version": "2.118.0"
816
+ }
817
+ }
818
+ },
819
+ "constructInfo": {
820
+ "fqn": "aws-cdk-lib.aws_ec2.GatewayVpcEndpoint",
821
+ "version": "2.118.0"
822
+ }
823
+ }
824
+ },
825
+ "constructInfo": {
826
+ "fqn": "aws-cdk-lib.aws_ec2.Vpc",
827
+ "version": "2.118.0"
828
+ }
829
+ },
830
+ "Custom::VpcRestrictDefaultSGCustomResourceProvider": {
831
+ "id": "Custom::VpcRestrictDefaultSGCustomResourceProvider",
832
+ "path": "lamddb-deployFunctionWithVpc/Custom::VpcRestrictDefaultSGCustomResourceProvider",
833
+ "children": {
834
+ "Staging": {
835
+ "id": "Staging",
836
+ "path": "lamddb-deployFunctionWithVpc/Custom::VpcRestrictDefaultSGCustomResourceProvider/Staging",
837
+ "constructInfo": {
838
+ "fqn": "aws-cdk-lib.AssetStaging",
839
+ "version": "2.118.0"
840
+ }
841
+ },
842
+ "Role": {
843
+ "id": "Role",
844
+ "path": "lamddb-deployFunctionWithVpc/Custom::VpcRestrictDefaultSGCustomResourceProvider/Role",
845
+ "constructInfo": {
846
+ "fqn": "aws-cdk-lib.CfnResource",
847
+ "version": "2.118.0"
848
+ }
849
+ },
850
+ "Handler": {
851
+ "id": "Handler",
852
+ "path": "lamddb-deployFunctionWithVpc/Custom::VpcRestrictDefaultSGCustomResourceProvider/Handler",
853
+ "constructInfo": {
854
+ "fqn": "aws-cdk-lib.CfnResource",
855
+ "version": "2.118.0"
856
+ }
857
+ }
858
+ },
859
+ "constructInfo": {
860
+ "fqn": "aws-cdk-lib.CustomResourceProviderBase",
861
+ "version": "2.118.0"
862
+ }
863
+ },
864
+ "Integ": {
865
+ "id": "Integ",
866
+ "path": "lamddb-deployFunctionWithVpc/Integ",
867
+ "children": {
868
+ "DefaultTest": {
869
+ "id": "DefaultTest",
870
+ "path": "lamddb-deployFunctionWithVpc/Integ/DefaultTest",
871
+ "children": {
872
+ "Default": {
873
+ "id": "Default",
874
+ "path": "lamddb-deployFunctionWithVpc/Integ/DefaultTest/Default",
875
+ "constructInfo": {
876
+ "fqn": "constructs.Construct",
877
+ "version": "10.3.0"
878
+ }
879
+ },
880
+ "DeployAssert": {
881
+ "id": "DeployAssert",
882
+ "path": "lamddb-deployFunctionWithVpc/Integ/DefaultTest/DeployAssert",
883
+ "children": {
884
+ "BootstrapVersion": {
885
+ "id": "BootstrapVersion",
886
+ "path": "lamddb-deployFunctionWithVpc/Integ/DefaultTest/DeployAssert/BootstrapVersion",
887
+ "constructInfo": {
888
+ "fqn": "aws-cdk-lib.CfnParameter",
889
+ "version": "2.118.0"
890
+ }
891
+ },
892
+ "CheckBootstrapVersion": {
893
+ "id": "CheckBootstrapVersion",
894
+ "path": "lamddb-deployFunctionWithVpc/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
895
+ "constructInfo": {
896
+ "fqn": "aws-cdk-lib.CfnRule",
897
+ "version": "2.118.0"
898
+ }
899
+ }
900
+ },
901
+ "constructInfo": {
902
+ "fqn": "aws-cdk-lib.Stack",
903
+ "version": "2.118.0"
904
+ }
905
+ }
906
+ },
907
+ "constructInfo": {
908
+ "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
909
+ "version": "2.118.0-alpha.0"
910
+ }
911
+ }
912
+ },
913
+ "constructInfo": {
914
+ "fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
915
+ "version": "2.118.0-alpha.0"
916
+ }
917
+ },
918
+ "BootstrapVersion": {
919
+ "id": "BootstrapVersion",
920
+ "path": "lamddb-deployFunctionWithVpc/BootstrapVersion",
921
+ "constructInfo": {
922
+ "fqn": "aws-cdk-lib.CfnParameter",
923
+ "version": "2.118.0"
924
+ }
925
+ },
926
+ "CheckBootstrapVersion": {
927
+ "id": "CheckBootstrapVersion",
928
+ "path": "lamddb-deployFunctionWithVpc/CheckBootstrapVersion",
929
+ "constructInfo": {
930
+ "fqn": "aws-cdk-lib.CfnRule",
931
+ "version": "2.118.0"
932
+ }
933
+ }
934
+ },
935
+ "constructInfo": {
936
+ "fqn": "aws-cdk-lib.Stack",
937
+ "version": "2.118.0"
938
+ }
939
+ },
940
+ "Tree": {
941
+ "id": "Tree",
942
+ "path": "Tree",
943
+ "constructInfo": {
944
+ "fqn": "constructs.Construct",
945
+ "version": "10.3.0"
946
+ }
947
+ }
948
+ },
949
+ "constructInfo": {
950
+ "fqn": "aws-cdk-lib.App",
951
+ "version": "2.118.0"
952
+ }
953
+ }
954
+ }